public class FileLogger extends BaseLogger
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_FILENAME |
PARAM_EXCEPTIONS, PARAM_SHOW, VALUE_SHOW_ALL, VALUE_SHOW_EXCEPTIONS, VALUE_SHOW_INFO, VALUE_SHOW_TERMINATED
Constructor and Description |
---|
FileLogger() |
Modifier and Type | Method and Description |
---|---|
protected void |
appendToFile(String text) |
protected ParameterParser |
createParser() |
void |
doLog(Level level,
String msgText,
Message as2Msg) |
protected void |
doLog(Throwable t,
boolean terminated) |
protected File |
getLogFile() |
protected String |
getShowDefaults() |
void |
init(Session session,
Map<String,String> parameters)
Component lifecycle hook.
|
getFormatter, isLogging, isShowing, log, log, setFormatter
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, getName, getParameters, getSession
public static final String PARAM_FILENAME
public void init(Session session, Map<String,String> parameters) throws OpenAS2Exception
Component
init
in interface Component
init
in class BaseComponent
session
- the component uses this object to access other componentsparameters
- configuration values for the componentOpenAS2Exception
- If an error occurs while initializing the componentSession
public void doLog(Level level, String msgText, Message as2Msg)
doLog
in class BaseLogger
protected String getShowDefaults()
getShowDefaults
in class BaseLogger
protected void appendToFile(String text)
protected File getLogFile() throws OpenAS2Exception
OpenAS2Exception
protected ParameterParser createParser()
protected void doLog(Throwable t, boolean terminated)
doLog
in class BaseLogger
Copyright © 2018. All rights reserved.