Skip to content
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

logging: introduce slog.Logger #4124

Merged
merged 2 commits into from
Nov 8, 2024
Merged

logging: introduce slog.Logger #4124

merged 2 commits into from
Nov 8, 2024

Conversation

mastercactapus
Copy link
Member

Description:
Introduced *slog.Logger to the App struct as an eventual replacement for the custom logging package.

This can also be used as a logger to pass into other tools that take an *slog.Logger argument.

- Introduced new `Logger` using `slog` for better structure
- Continued use of `LegacyLogger` to maintain compatibility
- Replaced custom logger with `slog-logrus` for SMTP and other components
- Refactored error handling in `multiListener` to utilize `slog`
- Updated tests and dependencies to align with new logging strategy
@github-actions github-actions bot added the size/m label Nov 8, 2024
KatieMSB
KatieMSB previously approved these changes Nov 8, 2024
- Enforced the presence of a logger in application configuration.
- Integrated structured logging using slog and logrus for improved logging capabilities in test harness.
Copy link
Contributor

@m17ch m17ch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@mastercactapus mastercactapus merged commit dca954a into master Nov 8, 2024
7 checks passed
@mastercactapus mastercactapus deleted the slog branch November 8, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants