-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now that Fluentd supports nanosecond-resolution timestamps as of v0.14, it follows that the stdout output plugin should print the full timestamp. This is a very simple patch, instead of using the default `to_s` formatting, we call `strftime` with a custom formatting. Right now it always prints the nanoseconds, even on second-resolution timestamps. This means second-resolution timestamps will display like `2013-06-27 12:34:56.000000000 -0700`, which may be undesirable. If so, we can adjust the implement to print a condensed formatting for second-resolution timestamps.
- Loading branch information
Showing
2 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters