You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
With the addition of log/slog to the std lib, we can add an additional standard logger to the go-mail log package, that allows structured logging in JSON formatting.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
This commit introduces a new type 'JSONlog' that satisfies the Logger interface for structured JSON logging. This includes new methods 'Debugf', 'Infof', 'Warnf' and 'Errorf' to log messages at different levels and an associated test 'jsonlog_test.go' to ensure correct functionality. This enhances the logging functionality by providing clarity in logs and eases debugging process.
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
With the addition of
log/slog
to the std lib, we can add an additional standard logger to the go-maillog
package, that allows structured logging in JSON formatting.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: