1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/logger
Yong Tang 7581cf96fb Additional syslog-format option to allow microsecond resolution in syslog timestamp.
This fix tries to add an additional syslog-format of `rfc5424micro` which follows
the same as rfc5424 except that it use microsecond resolution for timestamp. The
purpose is to solve the issue raised in #21793 where log events might lose its
ordering if happens on the same second.

The timestamp field in rfc5424 is derived from rfc3339, though the maximium
resolution is limited to "TIME-SECFRAC" which is 6 (microsecond resolution).

The appropriate documentation (`docs/admin/logging/overview.md`) has been updated
to reflect the change in this fix.

This fix adds a unit test to cover the newly introduced format.

This fix fixes #21793.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-04-08 05:00:11 +00:00
..
awslogs daemon: remove some unused code 2016-03-31 11:24:12 -07:00
etwlogs Windows: Add ETW logging driver plug-in 2016-02-16 13:24:49 -08:00
fluentd fluentd logger: support all options besides Unix sockets 2016-03-21 10:03:21 +00:00
gcplogs Do not call out to Google on init 2016-03-17 11:06:21 -04:00
gelf add gelf option to customize compression type and level 2016-03-15 11:06:06 +00:00
journald Open the journald following descriptor earlier 2016-03-24 10:12:51 -04:00
jsonfilelog Fixes some issues with jsonfile write/read 2016-03-21 11:05:58 -04:00
loggerutils Merge pull request #21301 from cpuguy83/cleaner_file_log 2016-03-21 14:03:36 -07:00
splunk 1.change validateNoSchema into validateNoScheme 2016-03-31 12:29:15 +08:00
syslog Additional syslog-format option to allow microsecond resolution in syslog timestamp. 2016-04-08 05:00:11 +00:00
context.go daemon/logger: fix typo in godoc 2015-12-17 15:52:33 -08:00
copier.go only close LogDriver after LogCopier is done 2016-01-18 17:47:57 +00:00
copier_test.go only close LogDriver after LogCopier is done 2016-01-18 17:47:57 +00:00
factory.go log driver - add ability to interpolate container context into the log tag field 2015-09-16 15:19:28 -07:00
logger.go Move timeutils functions to the only places where they are used. 2015-12-15 14:56:14 -05:00