logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <ralph.go...@dslextreme.com>
Subject Re: FileAppender append="false" does not truncate the file on startup
Date Wed, 02 Sep 2015 04:36:00 GMT
Can you also add status=“DEBUG” to your configuration and provide that? I’d like to see
what is being passed through the configuration.

Ralph

> On Sep 1, 2015, at 4:41 PM, Remko Popma <remko.popma@gmail.com> wrote:
> 
> Can you provide your full configuration? (You may want to raise a Jira ticket to track
this issue.)
> 
> To confirm, the actual behaviour is that log4j appends to the end of the existing app.log
file, is that correct? 
> 
> Sent from my iPhone
> 
>> On 2015/09/02, at 2:50, Sharath Gururaj <e271828r@gmail.com> wrote:
>> 
>>       <File name="MyFile" fileName="app.log" append="false" >
>> 
>>           <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %l - %msg%n"
>> />
>> 
>>       </File>
>> 
>> 
>> I expect app.log to be truncated on my application startup.
>> 
>> This is not the case. It is never truncated. Please help
>> 
>> 
>> Thanks
>> 
>> Sharath
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message