public class FileLogger extends BaseLogger
| Modifier and Type | Field | Description |
|---|---|---|
static String |
PARAM_FILENAME |
PARAM_EXCEPTIONS, PARAM_SHOW, VALUE_SHOW_ALL, VALUE_SHOW_EXCEPTIONS, VALUE_SHOW_INFO, VALUE_SHOW_TERMINATED| Constructor | Description |
|---|---|
FileLogger() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
appendToFile(String text) |
|
protected ParameterParser |
createParser() |
|
protected void |
doLog(Throwable t,
boolean terminated) |
|
void |
doLog(Level level,
String msgText,
Message as2Msg) |
|
protected File |
getLogFile() |
|
protected String |
getShowDefaults() |
|
void |
init(Session session,
Map<String,String> parameters) |
Component lifecycle hook.
|
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParametergetFormatter, isLogging, isShowing, log, log, setFormatterdestroy, getName, getParameters, getSessionpublic static final String PARAM_FILENAME
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 void doLog(Level level, String msgText, Message as2Msg)
doLog in class BaseLoggerprotected String getShowDefaults()
getShowDefaults in class BaseLoggerprotected void appendToFile(String text)
protected File getLogFile() throws OpenAS2Exception
OpenAS2Exceptionprotected ParameterParser createParser()
protected void doLog(Throwable t, boolean terminated)
doLog in class BaseLoggerCopyright © 2018. All rights reserved.