Jacob Kjome | 9 Jul 04:03
Favicon

Re: fixedWindowRollingPolicy.setFileNamePattern

Eric Kolotyluk wrote:
> Hey thanks. I can't seem to find a similar set of extras for log4net. Is
> there a similar file name patter manipulator for log4net somewhere?

I can't speak for Log4net.  I suggest pinging the Log4net lists with your questions...

http://logging.apache.org/log4net/mail-lists.html

Jake

> 
> Cheers, Eric
> 
> -----Original Message-----
> From: Jacob Kjome [mailto:hoju <at> visi.com] 
> Sent: Tuesday, July 08, 2008 8:29 AM
> To: Log4J Users List
> Subject: Re: fixedWindowRollingPolicy.setFileNamePattern
> 
> See the rolling package in the Log4j "extras" companion...
> 
> http://logging.apache.org/log4j/companions/extras/index.html
> 
> Jake
> 
> 
> On Tue, 8 Jul 2008 08:04:49 -0700
>   "Eric Kolotyluk" <eric.kolotyluk <at> kodak.com> wrote:
>> One of the nice features I like in log4j 1.3 is
>> FixedWindowRollingPolicy#setFileNamePattern();
>>
>> The log4j default rolling pattern looks like mylog.log1, mylog.log2,
> ...
>> This makes it difficult for desktops to associate the file-type with
>> application used for opening the log file for viewing so I like to use
>>
>> FixedWindowRollingPolicy fixedWindowRollingPolicy = new
>> FixedWindowRollingPolicy();
>> fixedWindowRollingPolicy.setFileNamePattern("mylog%i.log");
>> fixedWindowRollingPolicy.setMaxIndex(9);
>> fixedWindowRollingPolicy.setMinIndex(0);
>>
>> This way I only have to associate the file suffix '.log' once, with my
>> favorite log file editor, and not for each of '.log1' '.log2' etc.
>>
>> It would be really nice to do this in log4j 1.2. Are there any plans
> to
>> add this to the 1.2 stream?
>>
>> Cheers, Eric
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe <at> logging.apache.org
>> For additional commands, e-mail: log4j-user-help <at> logging.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe <at> logging.apache.org
> For additional commands, e-mail: log4j-user-help <at> logging.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe <at> logging.apache.org
> For additional commands, e-mail: log4j-user-help <at> logging.apache.org
> 
> 
> 
> 

Gmane