Talk About Network

Google





Programming > C - C++ Learning > Re: chop log fi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 4118 of 4400
Post > Topic >>

Re: chop log files

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.
 




 3 Posts in Topic:
chop log files
Gerhard Wolf <quisquil  2008-04-16 13:58:28 
Re: chop log files
Stefan Naewe <nospam@[  2008-04-16 14:18:19 
Re: chop log files
Aggro <spammerdream@[E  2008-04-16 17:14:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 10:24:17 PST 2009.