public class LogFactoryImpl.LogImpl extends AbstractLog
Log interface. Writes
output to stderr.| Constructor and Description |
|---|
LogFactoryImpl.LogImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
formatMessage(short level,
java.lang.String message,
java.lang.Throwable t)
Convert
message into a string ready to be written to
the log. |
java.lang.String |
getChannel() |
short |
getLevel() |
protected boolean |
isEnabled(short level)
Check to see if the specified logging level is enabled.
|
protected void |
log(short level,
java.lang.String message,
java.lang.Throwable t)
Send the specified log message to the handler.
|
void |
setChannel(java.lang.String val) |
void |
setLevel(short val) |
error, error, fatal, fatal, getStackTrace, info, info, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, warn, warnprotected boolean isEnabled(short level)
AbstractLogisEnabled in class AbstractLogprotected void log(short level,
java.lang.String message,
java.lang.Throwable t)
AbstractLoglog in class AbstractLoglevel - the level of the log messagemessage - the message to sendt - the Throwable, or null if this is not an errorprotected java.lang.String formatMessage(short level,
java.lang.String message,
java.lang.Throwable t)
message into a string ready to be written to
the log.t - may be nullpublic void setChannel(java.lang.String val)
public java.lang.String getChannel()
public void setLevel(short val)
public short getLevel()
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.