-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
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
Add support for setting date/time format on logrus messages #2413
Comments
Customizing the format of logrus timestamp needs the following two configurations.
How about adding Of course, it must require the validation of the time format. |
I like the idea of having a configurable |
👍 a |
Okay, I’ll give it a try if it isn’t missing the point. |
@timakin if you can work on this feature that would be excellent! I think the places that will need to change are:
I'm not sure how best to test these changes (aside from doing it manually)--maybe @patrick-east has thoughts. |
I'm not 100% sure, but I think you can have logrus write its output into any |
WRT testing, we could do something similar to this test. |
Is somebody working on this issue? I would like to contribute! |
@timakin are you planning to work on this ? |
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. |
let user to configure the log's timestamp format by: * cli argument `log-timestamp-format` * environment variable `OPA_LOG_TIMESTAMP_FORMAT` Closes open-policy-agent#2413 Signed-off-by: Sergey Vilgelm <sergey@vilgelm.com>
With this, we allow the user to configure the logger's timestamp format by: * cli argument `log-timestamp-format` * environment variable `OPA_LOG_TIMESTAMP_FORMAT` Fixes #2413. Signed-off-by: Sergey Vilgelm <sergey@vilgelm.com>
Some users have requested ability to override the logrus date/time format to lower the precision--some log aggregation systems do not do well with the number of sub-second digits that are included in the default format. We need to investigate how to set the date/time format via the logrus API and then decide how to pipe the configuration down from the entrypoint.
The text was updated successfully, but these errors were encountered: