Since logging is "meant" to "keep" logs, I suggest you do not overwrite
logs, rather use something like RollingFileAppender to have N Number of
files, and roll them over based on time, or Size.

Hope this helps.
-Kamal.

-----Original Message-----
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 21, 2006 10:37 AM
To: Log4J Users List; Rajasekhar Dara
Subject: Re: Fwd: log file should be overwritten


The file appender will only append to a log file if it is specified in the
config.  Don't specify it in the config and it won't append.  Of course,
this
means on application restart, not for each log statement.  I can't imagine
why
one would want to overwrite for each log statement, but I just wanted to
point
that out to make sure the two situations weren't confused in the
conversation.

Jake

Quoting Rajasekhar  Dara <[EMAIL PROTECTED]>:

>   Any one of you can help me out ?
> plz.. its bit urgent..
>
> Dara:)
>
>
> Note: Forwarded message attached
>
> -- Original Message --
>
> From: "Rajasekhar  Dara" <[EMAIL PROTECTED]>
> To: log4j-user@logging.apache.org
> Subject: log file should be overwritten
>
>
> Regards,
>
> Rajasekhar Dara
> Sr. Software Engineer
> HP Global Soft Ltd
> Bangalore
> Phone: 22051018
> Mobile: 9845400277




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to