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
The log/slog package has appeared in the standard library for go 1.21. Thank you!
In version 1.21.3 it provides a commonHandler which has hardcoded key names.
For ECS compatibility reasons, could the key names be HandlerOptions settings rather than constants? Please.
In ECS current release (8.10) the names of these fields are:
TimeKey
@timestamp
LevelKey
log.level
MessageKey
message
SourceKey
log.origin.file.name
log.origin.file.line
The text was updated successfully, but these errors were encountered:
Our supported way of doing this is with ReplaceAttr. See the field docs for details
Sorry, something went wrong.
Thank you very much!
Minimal code based on Sean's tips. As a hint for someone who would come here.
No branches or pull requests
The log/slog package has appeared in the standard library for go 1.21. Thank you!
In version 1.21.3 it provides a commonHandler which has hardcoded key names.
For ECS compatibility reasons, could the key names be HandlerOptions settings rather than constants? Please.
In ECS current release (8.10) the names of these fields are:
TimeKey
→@timestamp
LevelKey
→log.level
MessageKey
→message
SourceKey
→ two fieldslog.origin.file.name
&log.origin.file.line
The text was updated successfully, but these errors were encountered: