The config could look like:

<ConfigurationSchedule>
  <Configuration>
     normal log4j config A
  </Configuration>
  <Configuration>
     <Schedule when="ISO 8601 period" duration="ISO 8601 duration" />
     Alt log4j config B
  </Configuration>
</ConfigurationSchedule>

Or something like that...

Gary

On Fri, Jul 31, 2015 at 1:52 PM, Gary Gregory <[email protected]>
wrote:

> Thoughts for a new feature I call "Snapshot logging".
>
> Start my app with logging set to WARN for example and a config that allows
> log4j to be reconfigured on a schedule (like once every 10 minutes), run in
> that configuration for a given duration, and then reconfigure itself back
> to its initial configuration.
>
> The goal is to be able to see what an app is doing while I am running
> tests without generating gigs and gigs of TRACE or DEBUG logging.
>
> Thoughts?
>
> Gary
> -
>
> --
> E-Mail: [email protected] | [email protected]
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
E-Mail: [email protected] | [email protected]
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to