moby--moby/daemon/logger
Kazuyoshi Kato bb11365e96 Handle long log messages correctly on SizedLogger
Loggers that implement BufSize() (e.g. awslogs) uses the method to
tell Copier about the maximum log line length. However loggerWithCache
and RingBuffer hide the method by wrapping loggers.

As a result, Copier uses its default 16KB limit which breaks log
lines > 16kB even the destinations can handle that.

This change implements BufSize() on loggerWithCache and RingBuffer to
make sure these logger wrappes don't hide the method on the underlying
loggers.

Fixes #41794.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
2021-01-20 16:44:06 -08:00
..
awslogs Handle long log messages correctly on SizedLogger 2021-01-20 16:44:06 -08:00
etwlogs
fluentd
gcplogs Fix gcplogs memory/connection leak 2020-09-30 17:45:19 -07:00
gelf
journald
jsonfilelog
local
logentries
loggerutils Handle long log messages correctly on SizedLogger 2021-01-20 16:44:06 -08:00
splunk
syslog
templates
adapter.go
adapter_test.go
copier.go Handle long log messages correctly on SizedLogger 2021-01-20 16:44:06 -08:00
copier_test.go Handle long log messages correctly on SizedLogger 2021-01-20 16:44:06 -08:00
factory.go
log_cache_opts.go
logger.go
logger_test.go
loginfo.go
metrics.go
plugin.go
plugin_unix.go
plugin_unsupported.go
proxy.go
ring.go Handle long log messages correctly on SizedLogger 2021-01-20 16:44:06 -08:00
ring_test.go