org.scijava.log
Interface LogService

All Superinterfaces:
Comparable<Prioritized>, Contextual, Disposable, HasPluginInfo, Prioritized, RichPlugin, SciJavaPlugin, SciJavaService, Service
All Known Implementing Classes:
AbstractLogService, StderrLogService

public interface LogService
extends SciJavaService

Interface for the logging service.

The service supports five common logging levels: ERROR, WARN, INFO, TRACE and DEBUG. It provides methods for logging messages, exception stack traces and combinations of the two.

Author:
Curtis Rueden

Field Summary
static int DEBUG
           
static int ERROR
           
static int INFO
           
static String LOG_LEVEL_PROPERTY
          System property to set for overriding the default logging level.
static int NONE
           
static int TRACE
           
static int WARN
           
 
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()
           
 void info(Object msg)
           
 void info(Object msg, Throwable t)
           
 void info(Throwable t)
           
 boolean isDebug()
           
 boolean isError()
           
 boolean isInfo()
           
 boolean isTrace()
           
 boolean isWarn()
           
 void setLevel(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)
           
 
Methods inherited from interface org.scijava.service.Service
initialize, 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
 

Field Detail

LOG_LEVEL_PROPERTY

static final String LOG_LEVEL_PROPERTY
System property to set for overriding the default logging level.

See Also:
Constant Field Values

NONE

static final int NONE
See Also:
Constant Field Values

ERROR

static final int ERROR
See Also:
Constant Field Values

WARN

static final int WARN
See Also:
Constant Field Values

INFO

static final int INFO
See Also:
Constant Field Values

DEBUG

static final int DEBUG
See Also:
Constant Field Values

TRACE

static final int TRACE
See Also:
Constant Field Values
Method Detail

debug

void debug(Object msg)

debug

void debug(Throwable t)

debug

void debug(Object msg,
           Throwable t)

error

void error(Object msg)

error

void error(Throwable t)

error

void error(Object msg,
           Throwable t)

info

void info(Object msg)

info

void info(Throwable t)

info

void info(Object msg,
          Throwable t)

trace

void trace(Object msg)

trace

void trace(Throwable t)

trace

void trace(Object msg,
           Throwable t)

warn

void warn(Object msg)

warn

void warn(Throwable t)

warn

void warn(Object msg,
          Throwable t)

isDebug

boolean isDebug()

isError

boolean isError()

isInfo

boolean isInfo()

isTrace

boolean isTrace()

isWarn

boolean isWarn()

getLevel

int getLevel()

setLevel

void setLevel(int level)


Copyright © 2009–2014 SciJava. All rights reserved.