-
Notifications
You must be signed in to change notification settings - Fork 136
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
JSON Log format missing milliseconds #545
Comments
I really appreciate the feedback here. This issue seemed to slip by most users including myself. 😅 And while I strongly agree with the ease of the solution... I can imagine that this change will break some log parsing that ContainerPilot users might rely on. For everyone following along this proposal is to change our timestamp...
I'd like to leave this issue open for a little longer (max 2 weeks). I'll post the PR as we wait in case anyone wants a custom build and can't change the source themselves. Fair enough @dfredell? |
@cheapRoc |
@cheapRoc |
I think we're good for getting my change merged and released. I'll get to that either tomorrow or early next week. |
Just released in ContainerPilot v3.7.0. |
When using the logging-format of "json" the time field doesn't include milliseconds.
Example:
I expect the log to look like the one in the JSON logging example https://github.com/joyent/containerpilot/blob/master/docs/30-configuration/38-logging.md it has a ms in the time
"time":"2014-03-10 19:57:38.562527896 -0400 EDT"
containerpilot -version
Version: 3.6.2 GitHash: c73f47f
I have narrowed it down to containerpilot taking the default format https://github.com/sirupsen/logrus/blob/d682213848ed68c0a260ca37d6dd5ace8423f5ba/formatter.go#L5 We can override the format easily at https://github.com/joyent/containerpilot/blob/7208e025644e9d9b0ca06d26ee97a4c612af7788/config/logger/logging.go#L60 with
The text was updated successfully, but these errors were encountered: