in reply to Writing to a log file without colliding

Another alternative would be to use Syslog (take a look at Sys::Syslog or Unix::Syslog) and let it worry about the details. This probably isn't what you want if your logging is very application specific, high volume, or you're not on a Unix style machine. But, if all you need to do is write out the occaisonal status message, it works great.
  • Comment on Re: Writing to a log file without colliding