We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, How to make different config / format for each level, e.g. make debug and info with specific properties.
Thank you
The text was updated successfully, but these errors were encountered:
#60 (comment)
You can easily create your own backend type, e.g:
type MyBackend struct { backend logging.Backend } func (b *MyBackend) Log(level logging.Level, calldepth int, rec *logging.Record) error { if level == logging.ERROR { formatted := rec.Formatted(calldepth) superImportantFunction(formatted) return nil } else { return b.backend.Log(level, calldepth, rec) } }
Sorry, something went wrong.
No branches or pull requests
Hello,
How to make different config / format for each level, e.g. make debug and info with specific properties.
Thank you
The text was updated successfully, but these errors were encountered: