org.apache.openjpa.lib.log
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, warn
protected boolean isEnabled(short level)
AbstractLog
isEnabled
in class AbstractLog
protected void log(short level, java.lang.String message, java.lang.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 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. The string should include the terminating newline.t
- may be nullpublic void setChannel(java.lang.String val)
public java.lang.String getChannel()
public void setLevel(short val)
public short getLevel()