Introduction
When you run applications inside Docker containers, you need to see what they print out to understand what is happening. Docker logging drivers control how and where these logs are saved or sent, so you can check them later or send them to other tools.
When you want to save container logs to a file on the host machine for later review.
When you want to send container logs to a centralized system like syslog or journald for easier monitoring.
When you want to limit the size of log files to avoid filling up your disk space.
When you want to use a special logging service like Fluentd or GELF to collect logs from many containers.
When you want to disable logging to save resources if logs are not needed.