|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object logahawk.AbstractLogger
public abstract class AbstractLogger
An implementation of Logger
that redirects all the Severity
specific methods to the general Logger.log(Severity, Object...)
method.
Field Summary |
---|
Fields inherited from interface logahawk.Logger |
---|
LINE_SEPARATOR |
Constructor Summary | |
---|---|
AbstractLogger()
|
Method Summary | |
---|---|
void |
alert(Object... data)
Alert is an information message (like Logger.info(Object...) ) but is more significant. |
void |
debug(Object... data)
Debug is an developer or systems information message. |
void |
error(Object... data)
Indicates a generic error occurred. |
void |
fatal(Object... data)
Indicates a error occurred that halts some operation. |
void |
info(Object... data)
Records nominal information about various operations. |
abstract void |
log(Severity severity,
Object... data)
Logs message with a provide Severity . |
void |
panic(Object... data)
Indicates a system error occurred that likely halts the entire application. |
void |
warn(Object... data)
Indicates that something went wrong but the overarching process will continue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractLogger()
Method Detail |
---|
public void alert(Object... data)
Logger
Logger.info(Object...)
) but is more significant. For example the start or
end of a long running process might be an alert so it stands out from the intervening info messages.
alert
in interface Logger
Severity.ALERT
public void debug(Object... data)
Logger
SeverityFilterLogger
.
debug
in interface Logger
Severity.DEBUG
public void error(Object... data)
Logger
Logger.fatal(Object...)
message.
error
in interface Logger
Severity.ERROR
public void fatal(Object... data)
Logger
Logger.error(Object...)
but
less critical than Logger.panic(Object...)
message. Some applications may have no use for this and may instead
rely solely on Logger.error(Object...)
.
fatal
in interface Logger
Severity.FATAL
public void info(Object... data)
Logger
info
in interface Logger
Severity.INFO
public abstract void log(Severity severity, Object... data)
Logger
Severity
. Useful for dynamically determined Severity
messages.
log
in interface Logger
public void panic(Object... data)
Logger
Logger
Severity.PANIC
public void warn(Object... data)
Logger
warn
in interface Logger
Severity.WARN
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |