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. As the title says, when I use the JSONFormatter, I want to be able to show the date instead of the unix timestamp. Is this possible?
I tried setting the log like this but it doesn't work:
golog.SetFormat("json").SetTimeFormat(time.RFC3339).Info("404 unknown route", golog.Fields{ "endpoint": ctx.Request().URL.RequestURI(), "body": bodyMap, })
I still get this log:
{ "timestamp": 1718810294, "level": "info", "message": "404 unknown route", "fields": { "body": null, "endpoint": "/sds?sublime2" } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello.
As the title says, when I use the JSONFormatter, I want to be able to show the date instead of the unix timestamp. Is this possible?
I tried setting the log like this but it doesn't work:
I still get this log:
The text was updated successfully, but these errors were encountered: