in reply to file state mannagment

What OS (Win or unix)? Do you know if the application doing the logging uses flock? Do you have any control over the code of application doing the logging?

Replies are listed 'Best First'.
Re^2: file state mannagment
by newPerlr (Novice) on Feb 05, 2009 at 04:13 UTC
    i have no control over the logger and it a unix system

      One more question. Does the application keep the log file open, or does it close and reopen it. This can be answered using strace or your system's equivalent.

      If it does close and reopen them, you can rename the file. Once the application creates a new log file, you can do whatever you want to the renamed one.