public interface LogService extends SciJavaService
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.
Modifier and Type | Field and Description |
---|---|
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 |
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() |
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) |
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
static final String LOG_LEVEL_PROPERTY
static final int NONE
static final int ERROR
static final int WARN
static final int INFO
static final int DEBUG
static final int TRACE
void debug(Object msg)
void debug(Throwable t)
void error(Object msg)
void error(Throwable t)
void info(Object msg)
void info(Throwable t)
void trace(Object msg)
void trace(Throwable t)
void warn(Object msg)
void warn(Throwable t)
boolean isDebug()
boolean isError()
boolean isInfo()
boolean isTrace()
boolean isWarn()
int getLevel()
void setLevel(int level)
Copyright © 2009–2016 SciJava. All rights reserved.