org.shiftone.jrat.util.log.target
Class ProxyLogTarget
java.lang.Object
org.shiftone.jrat.util.log.target.ProxyLogTarget
- All Implemented Interfaces:
- Constants, LogTarget
public class ProxyLogTarget
- extends java.lang.Object
- implements LogTarget, Constants
This class is an indirection layer to the "real" LogTarget. This makes it
possible to switch the LogTarget that is being used by many LogTargetLog
instances in one statement.
- Author:
- jeff@shiftone.org (Jeff Drost)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxyLogTarget
public ProxyLogTarget(LogTarget logTarget)
isLevelEnabled
public boolean isLevelEnabled(java.lang.String topic,
int level)
- Specified by:
isLevelEnabled
in interface LogTarget
getLogTarget
public LogTarget getLogTarget()
setLogTarget
public void setLogTarget(LogTarget logTarget)
getCurrentLevel
public int getCurrentLevel()
setCurrentLevel
public void setCurrentLevel(int currentLevel)
log
public void log(java.lang.String topic,
int level,
java.lang.Object message,
java.lang.Throwable throwable)
- Specified by:
log
in interface LogTarget