org.scijava.log.slf4j
Class SLF4JLogService

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by org.scijava.plugin.AbstractRichPlugin
          extended by org.scijava.service.AbstractService
              extended by org.scijava.log.slf4j.SLF4JLogService
All Implemented Interfaces:
Comparable<Prioritized>, Contextual, Disposable, LogService, HasPluginInfo, RichPlugin, SciJavaPlugin, Prioritized, SciJavaService, Service

public final class SLF4JLogService
extends AbstractService
implements LogService

Logging service implemented using SLF4J.

Author:
Curtis Rueden

Field Summary
 
Fields inherited from interface org.scijava.log.LogService
DEBUG, ERROR, INFO, LOG_LEVEL_PROPERTY, NONE, TRACE, WARN
 
Constructor Summary
SLF4JLogService()
           
 
Method Summary
 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()
           
 org.slf4j.Logger getLogger()
           
 void info(Object msg)
           
 void info(Object msg, Throwable t)
           
 void info(Throwable t)
           
 void initialize()
           
 boolean isDebug()
           
 boolean isError()
           
 boolean isInfo()
           
 boolean isTrace()
           
 boolean isWarn()
           
 void setLevel(int level)
           
 void setLogger(org.slf4j.Logger logger)
           
 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)
           
 
Methods inherited from class org.scijava.service.AbstractService
dispose, getContext, registerEventHandlers, setContext, toString
 
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
compareTo, getInfo, getPriority, setInfo, setPriority
 
Methods inherited from class org.scijava.AbstractContextual
context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.scijava.service.Service
registerEventHandlers
 
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
 
Methods inherited from interface org.scijava.Prioritized
getPriority, setPriority
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
 
Methods inherited from interface org.scijava.Disposable
dispose
 

Constructor Detail

SLF4JLogService

public SLF4JLogService()
Method Detail

getLogger

public org.slf4j.Logger getLogger()

setLogger

public void setLogger(org.slf4j.Logger logger)

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

initialize

public void initialize()
Specified by:
initialize in interface Service
Overrides:
initialize in class AbstractService


Copyright © 2013–2014 SciJava. All rights reserved.