Package org.jpos.util
Class SysLogListener
- java.lang.Object
-
- org.jpos.util.SysLogListener
-
- All Implemented Interfaces:
java.util.EventListener
,Configurable
,LogListener
public class SysLogListener extends java.lang.Object implements LogListener, Configurable
SysLog Listener see www.ietf.org/rfc/rfc3164.txt<log-listener class="org.jpos.util.SysLogListener"> <property name="facility" value="21" /> <property name="severity" value="5" /> <property name="tags" value="audit, syslog" /> <property name="prefix" value="[jPOS]" /> <property name="syslog.facility" value="21" /> <property name="syslog.severity" value="5" /> <property name="audit.facility" value="21" /> <property name="audit.severity" value="4" /> </log-listener>
-
-
Field Summary
Fields Modifier and Type Field Description static int
LOG_USER
static int
PRI_INFO
static int
SYSLOG_PORT
-
Constructor Summary
Constructors Constructor Description SysLogListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogEvent
log(LogEvent ev)
void
setConfiguration(Configuration cfg)
-
-
-
Field Detail
-
SYSLOG_PORT
public static final int SYSLOG_PORT
- See Also:
- Constant Field Values
-
LOG_USER
public static final int LOG_USER
- See Also:
- Constant Field Values
-
PRI_INFO
public static final int PRI_INFO
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SysLogListener
public SysLogListener()
-
-
Method Detail
-
log
public LogEvent log(LogEvent ev)
- Specified by:
log
in interfaceLogListener
-
setConfiguration
public void setConfiguration(Configuration cfg) throws ConfigurationException
- Specified by:
setConfiguration
in interfaceConfigurable
- Parameters:
cfg
- Configuration object- Throws:
ConfigurationException
-
-