Package org.javasimon.callback.logging

LoggingCallback is able to log stopwatch splits and statistics once in a while (N per millisecond, every N split, when split is longer than N ms, etc.)

See:
          Description

Interface Summary
LogMessageSource<C> Message provider, converts context into a loggable string.
 

Class Summary
CounterLogTemplate<C> Log template that logs something every N invocations of the CounterLogTemplate.isEnabled(Object) method.
DelegateLogTemplate<C> Base class for log template which delegates part of the work to a concrete log template.
DisabledLogTemplate<C>  
JULLogTemplate<C> Concrete log template using Logger.
LoggingCallback Callback which log stopwatch splits and manager warnings.
LogTemplate<C> Log template interface is the root of a hierarchy of implementations with different purposes.
LogTemplates Factory of LogTemplates.
PeriodicLogTemplate<C> Log template that logs something after every N milliseconds.
SLF4JLogTemplate<C> Concrete log template using SLF4J Logger.
SLF4JLogTemplate.Debug<C> SLF4J Log template with DEBUG level.
SLF4JLogTemplate.Info<C> SLF4J Log template with INFO level.
SLF4JLogTemplate.Warn<C> SLF4J Log template with WARN level.
SplitThresholdLogTemplate Log template which awakes only when split is longer than given threshold.
 

Package org.javasimon.callback.logging Description

LoggingCallback is able to log stopwatch splits and statistics once in a while (N per millisecond, every N split, when split is longer than N ms, etc.) and to various outputs (SLF4J, JUL). These logging strategies are called log templates inherit from LogTemplate and are produced by LogTemplates (factory class):

Then LogMessageSource is called back by the LogTemplate to get the message (a String) to log: what.



Copyright © 2013. All Rights Reserved.