Skip to content

Add new page for logging from Workers#2107

Merged
jkup merged 8 commits into
cloudflare:productionfrom
jkup:logging-workers
Aug 23, 2021
Merged

Add new page for logging from Workers#2107
jkup merged 8 commits into
cloudflare:productionfrom
jkup:logging-workers

Conversation

@jkup

@jkup jkup commented Aug 18, 2021

Copy link
Copy Markdown
Contributor
  1. I split Debugging Workers out into 2 pages: Debugging Workers (covers wrangler dev) and Logging from Workers (covers wrangler tail).
  2. Rearranged the order to put the new page directly below Debugging Workers.
  3. Added new sections to Logging from Workers (Intro, Adding custom logs, Accessing production logs with the dashboard)

cc @deadlypants1973 for content review! Would love any advice you have :)

@jkup
jkup requested a review from a team August 18, 2021 21:36
@jkup
jkup requested a review from a team as a code owner August 18, 2021 21:36

@deadlypants1973 deadlypants1973 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PCX revision

Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated

## Adding custom logs

Here is an example of a Worker with a `console.log` inside the request handler.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this sentence saying that if someone runs the below script it will do the action of 'adding a custom log'?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
@deadlypants1973 deadlypants1973 added the product:workers Related to Workers product label Aug 19, 2021
@deadlypants1973 deadlypants1973 added this to the Pages and Workers milestone Aug 19, 2021
@deadlypants1973 deadlypants1973 self-assigned this Aug 19, 2021
@deadlypants1973
deadlypants1973 requested review from kristianfreeman and lukeed and removed request for kristianfreeman August 19, 2021 14:26

@kristianfreeman kristianfreeman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing! few things to note but this is definitely on the right track, congrats on (i think?) your first PR!

Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Co-authored-by: Kate Tungusova <70746074+deadlypants1973@users.noreply.github.com>
Co-authored-by: Kristian Freeman <kristian@kristianfreeman.com>
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
jkup and others added 3 commits August 19, 2021 16:50
@jkup

jkup commented Aug 19, 2021

Copy link
Copy Markdown
Contributor Author

Incorporated all the changes!

cc @deadlypants1973 @signalnerve @lukeed

@lukeed lukeed left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@Electroid Electroid left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay, this is awesome! ❤️ I added a few nit suggestions.

Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Co-authored-by: Ashcon Partovi <ashcon@partovi.net>
@jkup

jkup commented Aug 20, 2021

Copy link
Copy Markdown
Contributor Author

@Electroid love it! updated!

@deadlypants1973 deadlypants1973 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

round 2

Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md
Comment thread products/workers/src/content/learning/logging-workers.md
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
Comment thread products/workers/src/content/learning/logging-workers.md Outdated
jkup and others added 2 commits August 20, 2021 12:05
Co-authored-by: Kate Tungusova <70746074+deadlypants1973@users.noreply.github.com>
@jkup

jkup commented Aug 20, 2021

Copy link
Copy Markdown
Contributor Author

@deadlypants1973 updated!

@jkup
jkup merged commit cebcaab into cloudflare:production Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers Related to Workers product

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants