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