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, toString
compareTo, getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
protected 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 LogService
public void debug(Throwable t)
debug
in interface LogService
public void debug(Object msg, Throwable t)
debug
in interface LogService
public void error(Object msg)
error
in interface LogService
public void error(Throwable t)
error
in interface LogService
public void error(Object msg, Throwable t)
error
in interface LogService
public void info(Object msg)
info
in interface LogService
public void info(Throwable t)
info
in interface LogService
public void info(Object msg, Throwable t)
info
in interface LogService
public void trace(Object msg)
trace
in interface LogService
public void trace(Throwable t)
trace
in interface LogService
public void trace(Object msg, Throwable t)
trace
in interface LogService
public void warn(Object msg)
warn
in interface LogService
public void warn(Throwable t)
warn
in interface LogService
public void warn(Object msg, Throwable t)
warn
in interface LogService
public boolean isDebug()
isDebug
in interface LogService
public boolean isError()
isError
in interface LogService
public boolean isInfo()
isInfo
in interface LogService
public boolean isTrace()
isTrace
in interface LogService
public boolean isWarn()
isWarn
in interface LogService
public int getLevel()
getLevel
in interface LogService
public void setLevel(int level)
setLevel
in interface LogService
public void setLevel(String classOrPackageName, int level)
Copyright © 2009–2016 SciJava. All rights reserved.