Logging in mailcow: dockerized consists of multiple stages, but is, after all, much more flexible and easier to integrate into a logging daemon than before.
In Docker the containerized application (PID 1) writes its output to stdout. For real one-application containers this works just fine.
Redis keys will only hold logs from applications and filter out system messages (think of cron etc.).
### Logging drivers
Here is the good news: Since Docker has some great logging drivers, you can integrate mailcow: dockerized into your existing logging environment with ease.
Docker logging drivers can now be implemented as plugins, next to Dockers integrated drivers.
Logging driver plugins are available in Docker 17.05 and higher.
Edit `docker-compose.yml` and append, for example, this block to use the "gelf" logging plugin:
```
logging:
log_driver: "gelf"
options:
gelf-address: "udp://graylog:12201"
gelf-tag: "mailcow-logs"
```
Linux users can also add or edit the Docker daemons configuration file `/etc/docker/daemon.json` to affect the global logging behavior. Windows users please have a look at the [docker documentation](https://docs.docker.com/engine/reference/commandline/dockerd//#windows-configuration-file):