com.ecyrd.speed4j.log
Class Slf4jLog
java.lang.Object
com.ecyrd.speed4j.log.Log
com.ecyrd.speed4j.log.Slf4jLog
- Direct Known Subclasses:
- PeriodicalLog
public class Slf4jLog
- extends Log
A simple logger which does nothing except write the stopwatch data to
the given SLF4J logger using Logger.info(String).
|
Field Summary |
protected org.slf4j.Logger |
m_log
Stores the SLF4J logger instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_log
protected org.slf4j.Logger m_log
- Stores the SLF4J logger instance.
Slf4jLog
public Slf4jLog()
setSlf4jLogname
public void setSlf4jLogname(String logName)
- Set the name of the logger that this logger should log to.
log
public void log(StopWatch sw)
- Logs using the INFO priority.
- Specified by:
log in class Log
- Parameters:
sw - The StopWatch to log.
Copyright © 2011. All Rights Reserved.