com.solarmetric.log
Class LogFactoryImpl.LogImpl
java.lang.Object
|
+--com.solarmetric.log.AbstractLog
|
+--com.solarmetric.log.LogFactoryImpl.LogImpl
- All Implemented Interfaces:
- Log
- Enclosing class:
- LogFactoryImpl
- public class LogFactoryImpl.LogImpl
- extends AbstractLog
A simple implementation of the Log
interface. Writes
output to stderr.
Methods inherited from class com.solarmetric.log.AbstractLog |
debug, debug, error, error, fatal, fatal, getStackTrace, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, warn, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogFactoryImpl.LogImpl
public LogFactoryImpl.LogImpl()
isEnabled
protected boolean isEnabled(short level)
- Description copied from class:
AbstractLog
- Check to see if the specified logging level is enabled.
- Overrides:
isEnabled
in class AbstractLog
log
protected void log(short level,
String message,
Throwable t)
- Description copied from class:
AbstractLog
- Send the specified log message to the handler.
- Overrides:
log
in class AbstractLog
- Following copied from class:
com.solarmetric.log.AbstractLog
- Parameters:
level
- the level of the log messagemessage
- the message to sendt
- the Throwable, or null if this is not an error
setChannel
public void setChannel(String val)
getChannel
public String getChannel()
setLevel
public void setLevel(short val)
getLevel
public short getLevel()
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.