|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.solarmetric.log.AbstractLog
A simple implementation of the Log
interface. Writes
output to stdout.
Fields inherited from interface com.solarmetric.log.Log |
DEBUG, ERROR, FATAL, INFO, TRACE, WARN |
Constructor Summary | |
AbstractLog()
|
Method Summary | |
void |
debug(Object message)
Write out a log message at the Log.TRACE
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
debug(Object message,
Throwable t)
Write out a log message at the Log.TRACE
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
error(Object message)
Write out a log message at the Log.TRACE
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
error(Object message,
Throwable t)
Write out a log message at the Log.TRACE
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
fatal(Object message)
Write out a log message at the Log.TRACE
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
fatal(Object message,
Throwable t)
Write out a log message at the Log.TRACE
level with the stringification of o as the body
of the message, also outputting t to the log. |
protected static String |
getStackTrace(Throwable t)
Utility method to obtain a stack trace as a String. |
void |
info(Object message)
Write out a log message at the Log.TRACE
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
info(Object message,
Throwable t)
Write out a log message at the Log.TRACE
level with the stringification of o as the body
of the message, also outputting t to the log. |
boolean |
isDebugEnabled()
Returns if the Log.DEBUG log level is enabled. |
protected abstract boolean |
isEnabled(short level)
Check to see if the specified logging level is enabled. |
boolean |
isErrorEnabled()
Returns if the Log.ERROR log level is enabled. |
boolean |
isFatalEnabled()
Returns if the Log.FATAL log level is enabled. |
boolean |
isInfoEnabled()
Returns if the Log.INFO log level is enabled. |
boolean |
isTraceEnabled()
Returns if the Log.TRACE log level is enabled. |
boolean |
isWarnEnabled()
Returns if the Log.WARN log level is enabled. |
protected abstract void |
log(short level,
String message,
Throwable t)
Send the specified log message to the handler. |
void |
trace(Object message)
Write out a log message at the Log.TRACE
level with the stringification of o as the body
of the message. |
void |
trace(Object message,
Throwable t)
Write out a log message at the Log.TRACE
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
warn(Object message)
Write out a log message at the Log.TRACE
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
warn(Object message,
Throwable t)
Write out a log message at the Log.TRACE
level with the stringification of o as the body
of the message, also outputting t to the log. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractLog()
Method Detail |
protected abstract boolean isEnabled(short level)
protected abstract void log(short level, String message, Throwable t)
level
- the level of the log messagemessage
- the message to sendt
- the Throwable, or null if this is not an errorpublic boolean isTraceEnabled()
Log
Log.TRACE
log level is enabled.isTraceEnabled
in interface Log
public boolean isDebugEnabled()
Log
Log.DEBUG
log level is enabled.isDebugEnabled
in interface Log
public boolean isInfoEnabled()
Log
Log.INFO
log level is enabled.isInfoEnabled
in interface Log
public boolean isWarnEnabled()
Log
Log.WARN
log level is enabled.isWarnEnabled
in interface Log
public boolean isErrorEnabled()
Log
Log.ERROR
log level is enabled.isErrorEnabled
in interface Log
public boolean isFatalEnabled()
Log
Log.FATAL
log level is enabled.isFatalEnabled
in interface Log
public void trace(Object message)
Log
Log.TRACE
level with the stringification of o
as the body
of the message.trace
in interface Log
public void trace(Object message, Throwable t)
Log
Log.TRACE
level with the stringification of o
as the body
of the message, also outputting t
to the log.trace
in interface Log
public void debug(Object message)
Log
Log.TRACE
level with the stringification of o
as the body
of the message, also outputting t
to the log.debug
in interface Log
public void debug(Object message, Throwable t)
Log
Log.TRACE
level with the stringification of o
as the body
of the message, also outputting t
to the log.debug
in interface Log
public void info(Object message)
Log
Log.TRACE
level with the stringification of o
as the body
of the message, also outputting t
to the log.info
in interface Log
public void info(Object message, Throwable t)
Log
Log.TRACE
level with the stringification of o
as the body
of the message, also outputting t
to the log.info
in interface Log
public void warn(Object message)
Log
Log.TRACE
level with the stringification of o
as the body
of the message, also outputting t
to the log.warn
in interface Log
public void warn(Object message, Throwable t)
Log
Log.TRACE
level with the stringification of o
as the body
of the message, also outputting t
to the log.warn
in interface Log
public void error(Object message)
Log
Log.TRACE
level with the stringification of o
as the body
of the message, also outputting t
to the log.error
in interface Log
public void error(Object message, Throwable t)
Log
Log.TRACE
level with the stringification of o
as the body
of the message, also outputting t
to the log.error
in interface Log
public void fatal(Object message)
Log
Log.TRACE
level with the stringification of o
as the body
of the message, also outputting t
to the log.fatal
in interface Log
public void fatal(Object message, Throwable t)
Log
Log.TRACE
level with the stringification of o
as the body
of the message, also outputting t
to the log.fatal
in interface Log
protected static String getStackTrace(Throwable t)
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |