in reply to How to rotate and compress log files

Adding that I operate mainly in Unix/Linux-land, how should I proceed?

with logrotate(8) (man logrotate) - that compresses stuff, too.

Replies are listed 'Best First'.
Re^2: How to rotate and compress log files
by dont_you (Hermit) on Aug 12, 2010 at 23:40 UTC
    Check the 'copytruncate' option of logrotate, it avoids the hassle of reopening log files after rotation (otherwise, long running processes must be signaled to do that).
Re^2: How to rotate and compress log files
by andreas1234567 (Vicar) on Aug 13, 2010 at 11:03 UTC
    with logrotate(8) (man logrotate) - that compresses stuff, too.
    Am I correct to assume I should then simply log to a file without rotation using log4perl, then let logrotate handle both rotation and compression?
    --
    No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]

      Yes. No point in re-inventing this wheel IMHO if your OS provides a solid solution.
      Remember: Laziness, Impatience and Hubris :-)