public abstract class AbstractLog extends Object implements Log
doLog(Level, Throwable, String, Object...) method.| Modifier and Type | Field and Description |
|---|---|
protected static Object |
CLASS_NAME
The name of this class.
|
REPLACE_TOKEN| Modifier and Type | Method and Description |
|---|---|
void |
debug(String message)
Logs a message at the
DEBUG level. |
void |
debug(String template,
Object... args)
Logs a message at the DEBUG level.
|
void |
debug(Throwable thrown,
String template,
Object... args)
Logs a message at the DEBUG level.
|
protected abstract void |
doLog(Level level,
Throwable thrown,
String template,
Object... args)
Delegate method for the
Log implementation. |
void |
error(String message)
Logs a message at the
ERROR level. |
void |
error(String template,
Object... args)
Logs a message at the ERROR level.
|
void |
error(Throwable thrown,
String template,
Object... args)
Logs a message at the ERROR level.
|
void |
info(String message)
Logs a message at the
Level.INFO level. |
void |
info(String template,
Object... args)
Logs a message at the INFO level.
|
void |
info(Throwable thrown,
String template,
Object... args)
Logs a message at the INFO level.
|
void |
log(Level level,
String message)
Logs a message at the specified level.
|
void |
log(Level level,
String template,
Object... args)
Logs a message at the specified level.
|
void |
log(Level level,
Throwable thrown,
String template,
Object... args)
Logs a message at the specified level.
|
void |
warn(String message)
Logs a message at the
Level.WARNING level. |
void |
warn(String template,
Object... args)
Logs a message at the WARNING level.
|
void |
warn(Throwable thrown,
String template,
Object... args)
Logs a message at the WARNING level.
|
protected static final Object CLASS_NAME
public final void debug(String message)
DEBUG level.
Overridden to call doLog(Level, Throwable, String, Object...).
debug in interface Logmessage - The message to log.Log.debug(String)public final void debug(String template, Object... args)
Overridden to call doLog(Level, Throwable, String, Object...).
debug in interface Logtemplate - The message template to log.args - The arguments to replace the {} entries in the
template.Log.debug(String, Object[])public final void debug(Throwable thrown, String template, Object... args)
Overridden to call doLog(Level, Throwable, String, Object...).
debug in interface Logthrown - The exception associated with the log message.template - The message template to log.args - The arguments to replace the {} entries in the
template.Log.debug(Throwable, String, Object[])public final void error(String message)
ERROR level.
Overridden to call doLog(Level, Throwable, String, Object...).
error in interface Logmessage - The message to log.Log.error(String)public final void error(String template, Object... args)
Overridden to call doLog(Level, Throwable, String, Object...).
error in interface Logtemplate - The message template to log.args - The arguments to replace the {} entries in the
template.Log.error(String, Object[])public final void error(Throwable thrown, String template, Object... args)
Overridden to call doLog(Level, Throwable, String, Object...).
error in interface Logthrown - The exception associated with the log message.template - The message template to log.args - The arguments to replace the {} entries in the
template.Log.error(Throwable, String, Object[])public final void info(String message)
Level.INFO level.
Overridden to call doLog(Level, Throwable, String, Object...).
info in interface Logmessage - The message to log.Log.info(String)public final void info(String template, Object... args)
Overridden to call doLog(Level, Throwable, String, Object...).
info in interface Logtemplate - The message template to log.args - The arguments to replace the {} entries in the
template.Log.info(String, Object[])public final void info(Throwable thrown, String template, Object... args)
Overridden to call doLog(Level, Throwable, String, Object...).
info in interface Logthrown - The exception associated with the log message.template - The message template to log.args - The arguments to replace the {} entries in the
template.Log.info(Throwable, String, Object[])public final void log(Level level, String message)
Overridden to call doLog(Level, Throwable, String, Object...).
log in interface Loglevel - The logging level for the message.message - The message to log.Log.log(Level, String)public final void log(Level level, String template, Object... args)
Overridden to call doLog(Level, Throwable, String, Object...).
log in interface Loglevel - The logging level for the message.template - The message template to log.args - The arguments to replace the {} entries in the
template.Log.log(Level, String, Object[])public final void log(Level level, Throwable thrown, String template, Object... args)
Overridden to call doLog(Level, Throwable, String, Object...).
log in interface Loglevel - The logging level for the message.thrown - The exception associated with the log message.template - The message template to log.args - The arguments to replace the {} entries in the
template.Log.log(Level, Throwable, String, Object[])public final void warn(String message)
Level.WARNING level.
Overridden to call doLog(Level, Throwable, String, Object...).
warn in interface Logmessage - The message to log.Log.warn(String)public final void warn(String template, Object... args)
Overridden to call doLog(Level, Throwable, String, Object...).
warn in interface Logtemplate - The message template to log.args - The arguments to replace the {} entries in the
template.Log.warn(String, Object[])public final void warn(Throwable thrown, String template, Object... args)
Overridden to call doLog(Level, Throwable, String, Object...).
warn in interface Logthrown - The exception associated with the log message.template - The message template to log.args - The arguments to replace the {} entries in the
template.Log.warn(Throwable, String, Object[])protected abstract void doLog(Level level, Throwable thrown, String template, Object... args)
Log implementation.level - The logging level for the message.thrown - The exception associated with the log message.template - The message template to log.args - The arguments to replace the {} entries in the
template.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.