public abstract class BaseLogger extends BaseComponent implements Logger
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_EXCEPTIONS |
static String |
PARAM_SHOW |
static String |
VALUE_SHOW_ALL |
static String |
VALUE_SHOW_EXCEPTIONS |
static String |
VALUE_SHOW_INFO |
static String |
VALUE_SHOW_TERMINATED |
Constructor and Description |
---|
BaseLogger() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doLog(Level level,
String msgText,
Message message) |
protected abstract void |
doLog(Throwable throwable,
boolean terminated) |
Formatter |
getFormatter() |
protected abstract String |
getShowDefaults() |
protected boolean |
isLogging(OpenAS2Exception exception) |
protected boolean |
isShowing(String value) |
void |
log(Level level,
String msgText,
Message message)
level msgText message
|
void |
log(Throwable t,
Level level,
boolean terminated) |
void |
setFormatter(Formatter formatter) |
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, init, setParameter, setParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, getName, getParameters, getSession, init
public static final String PARAM_EXCEPTIONS
public static final String PARAM_SHOW
public static final String VALUE_SHOW_ALL
public static final String VALUE_SHOW_TERMINATED
public static final String VALUE_SHOW_EXCEPTIONS
public static final String VALUE_SHOW_INFO
public void setFormatter(Formatter formatter)
setFormatter
in interface Logger
public Formatter getFormatter()
getFormatter
in interface Logger
protected boolean isLogging(OpenAS2Exception exception)
protected abstract String getShowDefaults()
protected boolean isShowing(String value)
protected abstract void doLog(Throwable throwable, boolean terminated)
Copyright © 2018. All rights reserved.