org.perf4j.log4j.aop
Class TimingAspect

java.lang.Object
  extended by org.perf4j.aop.AbstractTimingAspect
      extended by org.perf4j.log4j.aop.TimingAspect

public class TimingAspect
extends AbstractTimingAspect

This TimingAspect implementation uses Log4j to persist StopWatch log messages at the info level.

Author:
Alex Devine

Constructor Summary
TimingAspect()
           
 
Method Summary
protected  void log(java.lang.String loggerName, java.lang.String stopWatchString)
          Subclasses must implement this method to persist the StopWatch logging message.
 
Methods inherited from class org.perf4j.aop.AbstractTimingAspect
doPerfLogging, evaluateJexl, getStopWatchMessage, getStopWatchTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimingAspect

public TimingAspect()
Method Detail

log

protected void log(java.lang.String loggerName,
                   java.lang.String stopWatchString)
Description copied from class: AbstractTimingAspect
Subclasses must implement this method to persist the StopWatch logging message.

Specified by:
log in class AbstractTimingAspect
Parameters:
loggerName - This name identifies the logger to use to persist the log message
stopWatchString - The StopWatch log to be saved.


Copyright © 2008 perf4j.org. All Rights Reserved.