ConsoleLogger, EmailLogger, FileLogger, SentryLogger, SocketLoggerpublic abstract class BaseLogger extends BaseComponent implements Logger
| Modifier and Type | Field | 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 | Description |
|---|---|
BaseLogger() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract void |
doLog(Throwable throwable,
boolean terminated) |
|
protected abstract void |
doLog(Level level,
String msgText,
Message message) |
|
Formatter |
getFormatter() |
|
protected abstract String |
getShowDefaults() |
|
protected boolean |
isLogging(OpenAS2Exception exception) |
|
protected boolean |
isShowing(String value) |
|
void |
log(Throwable t,
Level level,
boolean terminated) |
|
void |
log(Level level,
String msgText,
Message message) |
level msgText message
|
void |
setFormatter(Formatter formatter) |
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, init, setParameter, setParameterdestroy, getName, getParameters, getSession, initpublic 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 Loggerpublic Formatter getFormatter()
getFormatter in interface Loggerprotected 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.