-
Notifications
You must be signed in to change notification settings - Fork 855
Pretty printing logs #480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pretty printing logs #480
Conversation
🦋 Changeset detectedLatest commit: 09d73b8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
A wrangler prerelease is available for testing. You can install it in your project with: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/1860779332/wrangler Or you can try developing a worker directly with: npx https://prerelease-registry.developers.workers.dev/runs/1860779332/wrangler dev path/to/script.js |
This reverts commit dcc55e1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I paired with @caass on a review, and pointed out nits, looks good otherwise! Tentatively approving.
Implement
wrangler tail --pretty
to output human-readable text instead of JSON. Here's a screenshot of it in use:You can see the output from two different requests, as well as a cron trigger.
For reference, the code used in this worker is:
The cron errors because i added a trigger while testing cron messages and then removed the handler -- but it demonstrates how cron logs look!