org.mondemand.log4j
Class MonDemandAppender
AppenderSkeletonorg.mondemand.log4j.MonDemandAppender
public class MonDemandAppender
extends AppenderSkeleton
This is a log4j appender that uses the MonDemand API and
is configured with the LWES transport.
activateOptions
public void activateOptions()
append
protected void append(LoggingEvent event)
getAddress
public String getAddress()
Gets the LWES address
- the IP address LWES is using
getImmediateSendLevel
public int getImmediateSendLevel()
Gets the immediate send level for this appender.
- the log level where messages are sent immediately
getInterface
public String getInterface()
Gets the LWES network interface
getPort
public int getPort()
Gets the LWES port
getProgId
public String getProgId()
Gets the program identifier for this appender.
getTtl
public int getTtl()
Gets the LWES network TTL (for multicast)
requiresLayout
public boolean requiresLayout()
LOG4J HOOKS *
setAddress
public void setAddress(String address)
Sets the LWES address
address - the address to use
setImmediateSendLevel
public void setImmediateSendLevel(int level)
Sets the immediate send level for this appender.
level - the log level to send messages immediately
setInterface
public void setInterface(String iface)
Sets the LWES network interface
iface - the interface to use
setPort
public void setPort(int port)
Sets the LWES port
setProgId
public void setProgId(String progId)
Sets the program identifier for this appender.
progId - the program identifier
setTtl
public void setTtl(int ttl)
Sets the LWES network TTL (for multicast)