Re: rolling daily logger

2015-03-06 Thread Gary Gregory
Yeah, patches welcome! :-)

Gary

On Fri, Mar 6, 2015 at 8:55 AM, Daniel Widdis  wrote:

> This is not yet a feature of Log4J2.  There are a few JIRA tickets open
> for this feature request that you may wish to track:
>
> https://issues.apache.org/jira/browse/LOG4J2-524
>
> https://issues.apache.org/jira/browse/LOG4J2-435
>
> In the meantime, you can set up an external script to clean up old files
> based on filename (datestamp) or last access date.
>
> On 3/6/15 6:40 AM, Mark Lybarger wrote:
>
>> i'm using log4j2 for some of the filters (level and dynamic).  I want my
>> logs to roll based on size (this makes it easy to open in vim), but also
>> by
>> date (this helps organize them and I only need 1 week of logs).
>>
>>
>
> -
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: rolling daily logger

2015-03-06 Thread Daniel Widdis
This is not yet a feature of Log4J2.  There are a few JIRA tickets open 
for this feature request that you may wish to track:


https://issues.apache.org/jira/browse/LOG4J2-524

https://issues.apache.org/jira/browse/LOG4J2-435

In the meantime, you can set up an external script to clean up old files 
based on filename (datestamp) or last access date.


On 3/6/15 6:40 AM, Mark Lybarger wrote:

i'm using log4j2 for some of the filters (level and dynamic).  I want my
logs to roll based on size (this makes it easy to open in vim), but also by
date (this helps organize them and I only need 1 week of logs).




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



rolling daily logger

2015-03-06 Thread Mark Lybarger
i'm using log4j2 for some of the filters (level and dynamic).  I want my
logs to roll based on size (this makes it easy to open in vim), but also by
date (this helps organize them and I only need 1 week of logs).


here's my current configuraiton. i'm un sure how to specify a rollover
strategy that keeps 7 days worth of files with a size based triggering
policy.


any help would be most appreciated.


thanks,

-mark-