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
At the link https://www.elastic.co/guide/en/ecs-logging/go-zerolog/current/setup.html, I run the example code:
// Add custom fields. log.Info().Msg("hello world").Str("custom", "foo")
it gives me the following error:
log.Info().Msg("hello world") (no value) used as value or type
I need to change it to:
log.Info().Str("custom", "foo").Msg("Hello, World!") to make it work by referring https://github.com/rs/zerolog
log.Info().Str("custom", "foo").Msg("Hello, World!")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
At the link https://www.elastic.co/guide/en/ecs-logging/go-zerolog/current/setup.html, I run the example code:
it gives me the following error:
log.Info().Msg("hello world") (no value) used as value or type
I need to change it to:
log.Info().Str("custom", "foo").Msg("Hello, World!")
to make it work by referring https://github.com/rs/zerolog
The text was updated successfully, but these errors were encountered: