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() |
void |
init(Session session,
Map<String,String> parameters)
Component lifecycle hook.
|
boolean |
isLogExceptionTrace() |
protected boolean |
isLogging(OpenAS2Exception exception) |
protected boolean |
isShowing(String value) |
void |
log(Level level,
String msgText,
Message message,
Throwable t)
level msgText message
|
void |
log(Throwable t,
Level level,
boolean terminated) |
void |
setFormatter(Formatter formatter) |
void |
setLogExceptionTrace(boolean logExceptionTrace) |
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParameterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, getName, getParameters, getSessionpublic 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 init(Session session, Map<String,String> parameters) throws OpenAS2Exception
Componentinit in interface Componentinit in class BaseComponentsession - the component uses this object to access other componentsparameters - configuration values for the componentOpenAS2Exception - If an error occurs while initializing the componentSessionpublic boolean isLogExceptionTrace()
public void setLogExceptionTrace(boolean logExceptionTrace)
public void setFormatter(Formatter formatter)
setFormatter in interface Loggerpublic Formatter getFormatter()
getFormatter in interface Loggerpublic void log(Level level, String msgText, Message message, Throwable t)
protected boolean isLogging(OpenAS2Exception exception)
protected abstract String getShowDefaults()
protected boolean isShowing(String value)
protected abstract void doLog(Throwable throwable, boolean terminated)
Copyright © 2019. All rights reserved.