in reply to How to rotate and compress log files

Hmmm, may be you want to have a look at multilog? Pipe your logging data into a properly configured multilog and let multilog handle writing log files and time stamps. Combine with the remainder of daemontools to create daemons with reliable logging.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re: How to rotate and compress log files