logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Fwd: Logging File Should not be created, if ThreshHold = OFF
Date Wed, 28 Sep 2005 15:12:01 GMT


Begin forwarded message:

> From: Curt Arnold <curt.arnold@mac.com>
> Date: September 28, 2005 9:50:47 AM CDT
> To: Log4J Users List <log4j-user@logging.apache.org>
> Subject: Re: Logging File Should not be created, if ThreshHold = OFF
>
>
>
> On Sep 28, 2005, at 9:07 AM, Taranbir I Singh wrote:
>
>
>> Hi,
>>
>> I have disabled the logging through this code
>>
>> log4j.rootLogger= ,TEST
>> log4j.appender.TEST=org.apache.log4j.DailyRollingFileAppender
>> log4j.appender.TEST.File=c:/temp2/testRolling.txt
>> log4j.appender.TEST.DatePattern='.'yyyy-MM-dd
>> log4j.appender.TEST.Threshold=OFF
>>
>> Now It is still creating testRolling.txt, I EVEN want to disable  
>> that.
>>
>> 1. I mean even if C:/temp2 folder is NOT existing it should not  
>> throw away
>> any error.
>> 2. If C:/temp2  exists, it should NOT create "testRolling.txt", even
>> though its of 0 Bytes.
>>
>> Any Idea how to achieve this?
>>
>> Thanx in Advance
>>
>>
>
>
> There are very good reasons to create the file at configuration  
> time instead of at the first accepted logging request.  However,  
> requests similar to your have occurred frequently enough that  
> adding a configuration option to defer file creation until first  
> request.
>
> Any suggestions on a name for the configuration option,  
> "deferCreation" is the first thing that comes to my mind,
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message