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
Any place have the info about the meaning of all kinds of Template keywords?
For example:
const simplestTemplate = "[{{datetime}}] [{{level}}] {{message}} {{data}} {{extra}}"
What's the meaning of data and extra in above template string?
data
extra
Thanks.
The text was updated successfully, but these errors were encountered:
data, extra - Used to logging some complex data
data, extra
examples:
slog.Warn("warning log message") slog.WithData(slog.M{ "key0": 134, "key1": "abc", }).Infof("info log %s", "message")
output:
[WARNING] warning log message [INFO] info log message {key0:134, key1:abc}
Sorry, something went wrong.
inhere
No branches or pull requests
Any place have the info about the meaning of all kinds of Template keywords?
For example:
What's the meaning of
data
andextra
in above template string?Thanks.
The text was updated successfully, but these errors were encountered: