com.protomatter.syslog.commons
Class SyslogChannelLog
java.lang.Object
|
+--com.protomatter.syslog.commons.SyslogChannelLog
- All Implemented Interfaces:
- org.apache.commons.logging.Log
- public class SyslogChannelLog
- extends java.lang.Object
- implements org.apache.commons.logging.Log
An implementation of the org.apache.commons.logging.Log interface.
Field Summary |
protected com.protomatter.util.Debug |
debug
A Debug instance with the same name as this object. |
protected java.lang.String |
name
The name of this Log instance. |
Constructor Summary |
SyslogChannelLog(java.lang.String name)
Create a new log adapter with the given name. |
Method Summary |
void |
debug(java.lang.Object message)
|
void |
debug(java.lang.Object message,
java.lang.Throwable t)
|
void |
error(java.lang.Object message)
|
void |
error(java.lang.Object message,
java.lang.Throwable t)
|
void |
fatal(java.lang.Object message)
|
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
|
void |
info(java.lang.Object message)
|
void |
info(java.lang.Object message,
java.lang.Throwable t)
|
boolean |
isDebugEnabled()
Calls debug() on the Debug instance
associated with this class. |
boolean |
isErrorEnabled()
Always returns true. |
boolean |
isFatalEnabled()
Always returns true. |
boolean |
isInfoEnabled()
Calls info() on the Debug instance
associated with this class. |
boolean |
isTraceEnabled()
Calls trace() on the Debug instance
associated with this class. |
boolean |
isWarnEnabled()
Always returns true. |
void |
trace(java.lang.Object message)
|
void |
trace(java.lang.Object message,
java.lang.Throwable t)
|
void |
warn(java.lang.Object message)
|
void |
warn(java.lang.Object message,
java.lang.Throwable t)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
protected com.protomatter.util.Debug debug
- A Debug instance with the same name as this object.
name
protected java.lang.String name
- The name of this Log instance.
SyslogChannelLog
public SyslogChannelLog(java.lang.String name)
- Create a new log adapter with the given name.
isDebugEnabled
public boolean isDebugEnabled()
- Calls debug() on the Debug instance
associated with this class.
- Specified by:
isDebugEnabled
in interface org.apache.commons.logging.Log
- See Also:
Debug
isErrorEnabled
public boolean isErrorEnabled()
- Always returns true.
- Specified by:
isErrorEnabled
in interface org.apache.commons.logging.Log
isFatalEnabled
public boolean isFatalEnabled()
- Always returns true.
- Specified by:
isFatalEnabled
in interface org.apache.commons.logging.Log
isInfoEnabled
public boolean isInfoEnabled()
- Calls info() on the Debug instance
associated with this class.
- Specified by:
isInfoEnabled
in interface org.apache.commons.logging.Log
isTraceEnabled
public boolean isTraceEnabled()
- Calls trace() on the Debug instance
associated with this class.
- Specified by:
isTraceEnabled
in interface org.apache.commons.logging.Log
- See Also:
Debug
isWarnEnabled
public boolean isWarnEnabled()
- Always returns true.
- Specified by:
isWarnEnabled
in interface org.apache.commons.logging.Log
trace
public void trace(java.lang.Object message)
- Specified by:
trace
in interface org.apache.commons.logging.Log
trace
public void trace(java.lang.Object message,
java.lang.Throwable t)
- Specified by:
trace
in interface org.apache.commons.logging.Log
debug
public void debug(java.lang.Object message)
- Specified by:
debug
in interface org.apache.commons.logging.Log
debug
public void debug(java.lang.Object message,
java.lang.Throwable t)
- Specified by:
debug
in interface org.apache.commons.logging.Log
info
public void info(java.lang.Object message)
- Specified by:
info
in interface org.apache.commons.logging.Log
info
public void info(java.lang.Object message,
java.lang.Throwable t)
- Specified by:
info
in interface org.apache.commons.logging.Log
warn
public void warn(java.lang.Object message)
- Specified by:
warn
in interface org.apache.commons.logging.Log
warn
public void warn(java.lang.Object message,
java.lang.Throwable t)
- Specified by:
warn
in interface org.apache.commons.logging.Log
error
public void error(java.lang.Object message)
- Specified by:
error
in interface org.apache.commons.logging.Log
error
public void error(java.lang.Object message,
java.lang.Throwable t)
- Specified by:
error
in interface org.apache.commons.logging.Log
fatal
public void fatal(java.lang.Object message)
- Specified by:
fatal
in interface org.apache.commons.logging.Log
fatal
public void fatal(java.lang.Object message,
java.lang.Throwable t)
- Specified by:
fatal
in interface org.apache.commons.logging.Log