moby--moby/daemon/logger
Shijiang Wei b1594c59f5 use pubsub instead of filenotify to follow json logs
inotify event is trigged immediately there's data written to disk.
But at the time that the inotify event is received, the json line might
not fully saved to disk. If the json decoder tries to decode in such
case, an io.UnexpectedEOF will be trigged.
We used to retry for several times to mitigate the io.UnexpectedEOF error.
But there are still flaky tests caused by the partial log entries.

The daemon knows exactly when there are new log entries emitted. We can
use the pubsub package to notify all the log readers instead of inotify.

Signed-off-by: Shijiang Wei <mountkin@gmail.com>

try to fix broken test. will squash once tests pass

Signed-off-by: Shijiang Wei <mountkin@gmail.com>
2016-02-15 19:25:16 +08:00
..
awslogs dockerversion placeholder for library import 2015-11-09 19:32:46 +01:00
fluentd Added flag to ignore fluentd connect error on container start 2016-01-27 09:05:44 +02:00
gelf dont trim gelf log message 2015-12-11 10:28:24 +01:00
journald Add tag support to journald logging driver, closes #19556 2016-01-27 10:52:19 +00:00
jsonfilelog use pubsub instead of filenotify to follow json logs 2016-02-15 19:25:16 +08:00
loggerutils Added flag to ignore fluentd connect error on container start 2016-01-27 09:05:44 +02:00
splunk Fix typos found across repository 2015-12-13 18:04:12 +02:00
syslog Add support for syslog over TLS. 2016-01-11 12:25:34 -05: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