in reply to Re: Re: Re: Re: Re: cleaning up logs
in thread cleaning up logs

K, I understand where you're coming from. I should have made myself more clear in my original post. I apologize for that. You are correct, the original process will continue to write to the logfile regardless of what you rename it to and data will be lost in the process of doing this.

After the write that is occuring the next write by the logger will occur in the newly created file. But again, you have still lost the data that went to the old file after the rename.

  • Comment on Re: Re: Re: Re: Re: Re: cleaning up logs

Replies are listed 'Best First'.
Re^7: cleaning up logs
by zigdon (Deacon) on Oct 08, 2002 at 14:33 UTC
    After the write that is occuring the next write by the logger will occur in the newly created file. But again, you have still lost the data that went to the old file after the rename.

    Only if the writing process closes and reopens the file. As long as the original process keeps the filehandle open, it'll write to the old file.

    -- Dan