mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-01-18 19:32:32 +08:00
I appreciate this mod for keeping an eye on nginx logs and such. The lsio/swag rotates those log files daily, and unfortunately that causes this mod to stop working. I propose using tail's `-F` (a shortcut for `--follow=name --retry`) instead of `-f` so that this mod will continue tailing the newly-rotated log file.
stdout-logs - Docker mod for any container
This mod allows any specified log files to be tailed and included in the container's STDOUT.
In any container docker arguments, set an environment variable DOCKER_MODS=linuxserver/mods:universal-stdout-logs
If adding multiple mods, enter them in an array separated by |, such as DOCKER_MODS=linuxserver/mods:universal-stdout-logs|linuxserver/mods:universal-mod2
Simply set the environment variable LOGS_TO_STDOUT with a pipe-delimited (|) list of log files to include, such as LOGS_TO_STDOUT="/config/logs/radarr.txt|/config/logs/radarr.debug.txt".
Languages
Text
100%