Add new page for logging from Workers#2107
Conversation
|
|
||
| ## Adding custom logs | ||
|
|
||
| Here is an example of a Worker with a `console.log` inside the request handler. |
There was a problem hiding this comment.
Is this sentence saying that if someone runs the below script it will do the action of 'adding a custom log'?
There was a problem hiding this comment.
Yes! Maybe change to:
"You can add custom logs to your Worker with console.log. Any console.log's you add will show up in both the dashboard and wrangler tail. Here is an example of a Worker with a custom log inside the request handler."
Or something like that?
kristianfreeman
left a comment
There was a problem hiding this comment.
amazing! few things to note but this is definitely on the right track, congrats on (i think?) your first PR!
Co-authored-by: Kate Tungusova <70746074+deadlypants1973@users.noreply.github.com> Co-authored-by: Kristian Freeman <kristian@kristianfreeman.com>
Co-authored-by: Luke Edwards <luke.edwards05@gmail.com>
|
Incorporated all the changes! |
Electroid
left a comment
There was a problem hiding this comment.
Yay, this is awesome! ❤️ I added a few nit suggestions.
Co-authored-by: Ashcon Partovi <ashcon@partovi.net>
|
@Electroid love it! updated! |
Co-authored-by: Kate Tungusova <70746074+deadlypants1973@users.noreply.github.com>
|
@deadlypants1973 updated! |
wrangler dev) and Logging from Workers (coverswrangler tail).cc @deadlypants1973 for content review! Would love any advice you have :)