org.scijava.log
Class AbstractLogService
java.lang.Object
org.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.service.AbstractService
org.scijava.log.AbstractLogService
- All Implemented Interfaces:
- Comparable<Prioritized>, Contextual, Disposable, LogService, HasPluginInfo, RichPlugin, SciJavaPlugin, Prioritized, SciJavaService, Service
- Direct Known Subclasses:
- StderrLogService
public abstract class AbstractLogService
- extends AbstractService
- implements LogService
Base implementation of an abstract LogService
.
- Author:
- Johannes Schindelin
AbstractLogService
public AbstractLogService()
log
protected abstract void log(String msg)
- Displays a message.
- Parameters:
msg
- the message to display.
log
protected abstract void log(Throwable t)
- Displays an exception.
- Parameters:
t
- the exception to display.
log
protected void log(int level,
Object msg,
Throwable t)
log
protected void log(int level,
Object msg)
getPrefix
protected String getPrefix(int level)
debug
public void debug(Object msg)
- Specified by:
debug
in interface LogService
debug
public void debug(Throwable t)
- Specified by:
debug
in interface LogService
debug
public void debug(Object msg,
Throwable t)
- Specified by:
debug
in interface LogService
error
public void error(Object msg)
- Specified by:
error
in interface LogService
error
public void error(Throwable t)
- Specified by:
error
in interface LogService
error
public void error(Object msg,
Throwable t)
- Specified by:
error
in interface LogService
info
public void info(Object msg)
- Specified by:
info
in interface LogService
info
public void info(Throwable t)
- Specified by:
info
in interface LogService
info
public void info(Object msg,
Throwable t)
- Specified by:
info
in interface LogService
trace
public void trace(Object msg)
- Specified by:
trace
in interface LogService
trace
public void trace(Throwable t)
- Specified by:
trace
in interface LogService
trace
public void trace(Object msg,
Throwable t)
- Specified by:
trace
in interface LogService
warn
public void warn(Object msg)
- Specified by:
warn
in interface LogService
warn
public void warn(Throwable t)
- Specified by:
warn
in interface LogService
warn
public void warn(Object msg,
Throwable t)
- Specified by:
warn
in interface LogService
isDebug
public boolean isDebug()
- Specified by:
isDebug
in interface LogService
isError
public boolean isError()
- Specified by:
isError
in interface LogService
isInfo
public boolean isInfo()
- Specified by:
isInfo
in interface LogService
isTrace
public boolean isTrace()
- Specified by:
isTrace
in interface LogService
isWarn
public boolean isWarn()
- Specified by:
isWarn
in interface LogService
getLevel
public int getLevel()
- Specified by:
getLevel
in interface LogService
setLevel
public void setLevel(int level)
- Specified by:
setLevel
in interface LogService
setLevel
public void setLevel(String classOrPackageName,
int level)
Copyright © 2009–2014 SciJava. All rights reserved.