bbtsoftware / docker-mssql-backup

Docker image for periodic backups from a Microsoft SQL Server container
MIT License
28 stars 20 forks source link

Send log to stdout and stderr output streams only. #39

Closed eoehen closed 3 years ago

eoehen commented 3 years ago

If we add the parameter (-a) for append the logfile we have no control about the log file size. We have to think how we can limite the log file size, before we activate this parameter.

Feedback from @pfeigl in #37.

pfeigl commented 3 years ago

Coming from another direction: If the logfile is only created to be able to tail it and show all output in the docker logs, we could instead not create a log at all and write our output to /proc/1/fd/1, which is the stdout which docker connects to.

You can try it with echo "hi" > /proc/1/fd/1 which will just show up in docker logs