public class DefaultServiceLog extends FqcnIgnoringPaxLogger
Defaults to DEBUG but can be changed if if the "org.ops4j.pax.logging.DefaultServiceLog.level" system property
is set to on of the following: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, or NONE, prior to this class is loaded,
OR by calling the static method DefaultServiceLog.setLogLevel( String level )
, where
level is one of the same strings.
Modifier and Type | Field and Description |
---|---|
static int |
level |
LEVEL_DEBUG, LEVEL_ERROR, LEVEL_INFO, LEVEL_TRACE, LEVEL_WARNING
Modifier and Type | Method and Description |
---|---|
void |
debug(String message,
Throwable t) |
void |
error(String message,
Throwable t) |
void |
fatal(String message,
Throwable t) |
int |
getLogLevel() |
String |
getName() |
PaxContext |
getPaxContext() |
void |
inform(String message,
Throwable t) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isFatalEnabled() |
boolean |
isInfoEnabled() |
boolean |
isTraceEnabled() |
boolean |
isWarnEnabled() |
static void |
setLogLevel(String level) |
void |
trace(String message,
Throwable t) |
void |
warn(String message,
Throwable t) |
public boolean isTraceEnabled()
public boolean isDebugEnabled()
public boolean isWarnEnabled()
public boolean isInfoEnabled()
public boolean isErrorEnabled()
public boolean isFatalEnabled()
public int getLogLevel()
public static void setLogLevel(String level)
public String getName()
public PaxContext getPaxContext()
Copyright © 2019. All rights reserved.