-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
feat: Use log/slog for logging to file or stdout #493
Conversation
This is great! Thank you so much. Does that test failure make sense? I haven't run the tests in so long, I'm not sure if it's your PR or just the test setup needs updating. |
That test should pass now. I hadn't switched out the frameLogger to slog fully. |
Nice. Could you squash the new commit? Then I'll get this merged. |
Switched to Go1.21 to use the log/slog package for strutctured logging. TODO: Log messages that are stringifying objects can now use strutctured output. TODO: Customise log levels for different messages. Fix tests
c74e47b
to
92b440c
Compare
I have a few more improvements I'd like to do with logging. I can raise more PRs for those. |
So I think I'll wait for those then we can do a release. |
* Bump fast-json-patch and web-ext in /webext by @dependabot in #461 * Bump loader-utils from 2.0.2 to 2.0.4 in /webext by @dependabot in #453 * remove unnecessary RUN command by @lpmi-13 in #466 * Bump http-cache-semantics from 4.1.0 to 4.1.1 in /webext by @dependabot in #467 * fix: Golang install: use "amd64" for "x86_64" by @tombh in #463 * feat: Use log/slog for logging to file or stdout by @ananthb in #493 * feat: Structured log messages by @ananthb in #494 * chore: Clean up SETUP guides by @ananthb in #495 * chore: Remove manual install steps by @ananthb in #496 * fix: If debug is false discard logs by @ananthb in #497 * [Fix] Firefox inspecting logic on Windows by @Dragon1573 in #502 * feat: Add json schema (#505) by @Freed-Wu in #510 * @lpmi-13 made their first contribution in #466 * @ananthb made their first contribution in #493 * @Dragon1573 made their first contribution in #502 * @Freed-Wu made their first contribution in #510
* Bump fast-json-patch and web-ext in /webext by @dependabot in #461 * Bump loader-utils from 2.0.2 to 2.0.4 in /webext by @dependabot in #453 * remove unnecessary RUN command by @lpmi-13 in #466 * Bump http-cache-semantics from 4.1.0 to 4.1.1 in /webext by @dependabot in #467 * fix: Golang install: use "amd64" for "x86_64" by @tombh in #463 * feat: Use log/slog for logging to file or stdout by @ananthb in #493 * feat: Structured log messages by @ananthb in #494 * chore: Clean up SETUP guides by @ananthb in #495 * chore: Remove manual install steps by @ananthb in #496 * fix: If debug is false discard logs by @ananthb in #497 * [Fix] Firefox inspecting logic on Windows by @Dragon1573 in #502 * feat: Add json schema (#505) by @Freed-Wu in #510 * @lpmi-13 made their first contribution in #466 * @ananthb made their first contribution in #493 * @Dragon1573 made their first contribution in #502 * @Freed-Wu made their first contribution in #510
Switched to Go1.21 to use the log/slog package for strutctured logging.
TODO: Log messages that are stringifying objects can now use strutctured output.
TODO: Customise log levels for different messages.