moby--moby/daemon/logger
Paweł Gronowski 2ec3e14c0f test: Add tests for logging
1. Add integration tests for the ContainerLogs API call
Each test handle a distinct case of ContainerLogs output.
- Muxed stream, when container is started without tty
- Single stream, when container is started with tty

2. Add unit test for LogReader suite that tests concurrent logging
It checks that there are no race conditions when logging concurrently
from multiple goroutines.

Co-authored-by: Cory Snider <csnider@mirantis.com>
Signed-off-by: Cory Snider <csnider@mirantis.com>
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2022-06-10 09:26:17 +02:00
..
awslogs test: use `T.Setenv` to set env vars in tests 2022-04-23 17:44:16 +08:00
etwlogs panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
fluentd panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
gcplogs panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
gelf panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
journald daemon/logger: remove ProducerGone from LogWatcher 2022-05-19 15:22:22 -04:00
jsonfilelog daemon/logger: Increase initial buffers size 2022-05-30 20:50:56 +02:00
local daemon/logger: Increase initial buffers size 2022-05-30 20:50:56 +02:00
logentries panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
loggertest test: Add tests for logging 2022-06-10 09:26:17 +02:00
loggerutils daemon/logger: Fix TestConcurrentLogging race test 2022-05-31 14:02:59 +02:00
splunk replace deprecated gotest.tools' env.Patch() with t.SetEnv() 2022-05-28 12:12:39 +02:00
syslog panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
templates
adapter.go
adapter_test.go daemon/logger: remove ProducerGone from LogWatcher 2022-05-19 15:22:22 -04:00
copier.go
copier_test.go
factory.go
log_cache_opts.go
logger.go daemon/logger: Share buffers by sync.Pool 2022-05-27 16:44:06 +02:00
logger_error.go
logger_test.go
loginfo.go
metrics.go
plugin.go
plugin_unix.go
plugin_unsupported.go
proxy.go
ring.go
ring_test.go