by Aggro <spammerdream@[EMAIL PROTECTED]
>
Apr 16, 2008 at 05:14 PM
Gerhard Wolf wrote:
> Hi,
>
> in my C++ application i use LOG-Files. At the moment i have no idea how
> to chop them efficiently if they exceed a size (or linecount) limit.
> Surely has been many times implemented and is used on linux
> (/var/logs/messages).
>
> How can i do that efficiently?
Rename the old file and create a new empty file with the old name.