public abstract class AbstractLogService extends AbstractService implements LogService
LogService.DEBUG, ERROR, INFO, LOG_LEVEL_PROPERTY, NONE, TRACE, WARN| Constructor and Description |
|---|
AbstractLogService() |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(Object msg) |
void |
debug(Object msg,
Throwable t) |
void |
debug(Throwable t) |
void |
error(Object msg) |
void |
error(Object msg,
Throwable t) |
void |
error(Throwable t) |
int |
getLevel() |
protected String |
getPrefix(int level) |
void |
info(Object msg) |
void |
info(Object msg,
Throwable t) |
void |
info(Throwable t) |
boolean |
isDebug() |
boolean |
isError() |
boolean |
isInfo() |
boolean |
isTrace() |
boolean |
isWarn() |
protected void |
log(int level,
Object msg) |
protected void |
log(int level,
Object msg,
Throwable t) |
protected abstract void |
log(String msg)
Displays a message.
|
protected abstract void |
log(Throwable t)
Displays an exception.
|
void |
setLevel(int level) |
void |
setLevel(String classOrPackageName,
int level) |
void |
trace(Object msg) |
void |
trace(Object msg,
Throwable t) |
void |
trace(Throwable t) |
void |
warn(Object msg) |
void |
warn(Object msg,
Throwable t) |
void |
warn(Throwable t) |
dispose, getContext, initialize, registerEventHandlers, setContext, toStringcompareTo, getInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitialize, registerEventHandlerscontext, getContext, setContextgetPriority, setPrioritycompareTogetInfo, setInfodisposeprotected abstract void log(String msg)
msg - the message to display.protected abstract void log(Throwable t)
t - the exception to display.protected void log(int level,
Object msg)
protected String getPrefix(int level)
public void debug(Object msg)
debug in interface LogServicepublic void debug(Throwable t)
debug in interface LogServicepublic void debug(Object msg, Throwable t)
debug in interface LogServicepublic void error(Object msg)
error in interface LogServicepublic void error(Throwable t)
error in interface LogServicepublic void error(Object msg, Throwable t)
error in interface LogServicepublic void info(Object msg)
info in interface LogServicepublic void info(Throwable t)
info in interface LogServicepublic void info(Object msg, Throwable t)
info in interface LogServicepublic void trace(Object msg)
trace in interface LogServicepublic void trace(Throwable t)
trace in interface LogServicepublic void trace(Object msg, Throwable t)
trace in interface LogServicepublic void warn(Object msg)
warn in interface LogServicepublic void warn(Throwable t)
warn in interface LogServicepublic void warn(Object msg, Throwable t)
warn in interface LogServicepublic boolean isDebug()
isDebug in interface LogServicepublic boolean isError()
isError in interface LogServicepublic boolean isInfo()
isInfo in interface LogServicepublic boolean isTrace()
isTrace in interface LogServicepublic boolean isWarn()
isWarn in interface LogServicepublic int getLevel()
getLevel in interface LogServicepublic void setLevel(int level)
setLevel in interface LogServicepublic void setLevel(String classOrPackageName, int level)
Copyright © 2009–2016 SciJava. All rights reserved.