Proxy and dynflow log file rotation


#1

Hey,

as I was implementing dynflow smart proxy core structured logging I noticed that foreman proxy now has an improved logging in Foreman 1.20+ which by default performs auto log file rotation (100 MiB or week old what comes first). We still ship logrotate script which rotates files daily. We should pick one or another otherwise rotated logs might interfere, thus starting this thread.

I propose for foreman-proxy and foreman-proxy dynflow core to let the logging stack to rotate the files and disable (remove) logrotate script for these. For foreman core we stick with logrotate as the implementation there does not rotate files at all.