org.mule.agent
Class Log4jNotificationLoggerAgent

java.lang.Object
  extended by org.mule.AbstractAgent
      extended by org.mule.agent.AbstractNotificationLoggerAgent
          extended by org.mule.agent.Log4jNotificationLoggerAgent
All Implemented Interfaces:
Agent, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, NameableObject, NamedObject

public class Log4jNotificationLoggerAgent
extends AbstractNotificationLoggerAgent

AbstractNotificationLoggerAgent Receives Mule server notifications and logs them and can optionally route them to an endpoint


Field Summary
protected static int DEFAULT_DESCRIPTION_BUFFER_SIZE
           
protected  Logger eventLogger
           
 
Fields inherited from class org.mule.agent.AbstractNotificationLoggerAgent
logger
 
Fields inherited from class org.mule.AbstractAgent
muleContext, name
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
Log4jNotificationLoggerAgent()
           
 
Method Summary
protected  void doInitialise()
           
 String getChainsawHost()
           
 int getChainsawPort()
           
 String getDescription()
          Should be a 1 line description of the agent
 Map<String,String> getLevelMappings()
           
 String getLogConfigFile()
           
 String getLogFile()
           
 String getLogName()
           
protected  void logEvent(ServerNotification e)
           
 void setChainsawHost(String chainsawHost)
           
 void setChainsawPort(int chainsawPort)
           
 void setLevelMappings(Map<String,String> levelMappings)
           
 void setLogConfigFile(String logConfigFile)
           
 void setLogFile(String logFile)
           
 void setLogName(String logName)
           
 
Methods inherited from class org.mule.agent.AbstractNotificationLoggerAgent
dispose, initialise, isIgnoreAdminNotifications, isIgnoreComponentMessageNotifications, isIgnoreComponentNotifications, isIgnoreConnectionNotifications, isIgnoreCustomNotifications, isIgnoreEndpointMessageNotifications, isIgnoreManagementNotifications, isIgnoreManagerNotifications, isIgnoreMessageNotifications, isIgnoreMessageProcessorNotifications, isIgnoreModelNotifications, isIgnoreSecurityNotifications, setIgnoreAdminNotifications, setIgnoreComponentMessageNotifications, setIgnoreComponentNotifications, setIgnoreConnectionNotifications, setIgnoreCustomNotifications, setIgnoreEndpointMessageNotifications, setIgnoreManagementNotifications, setIgnoreManagerNotifications, setIgnoreMessageNotifications, setIgnoreMessageProcessorNotifications, setIgnoreModelNotifications, setIgnoreSecurityNotifications, start, stop
 
Methods inherited from class org.mule.AbstractAgent
getName, setMuleContext, setName, unregisterMeQuietly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DESCRIPTION_BUFFER_SIZE

protected static final int DEFAULT_DESCRIPTION_BUFFER_SIZE
See Also:
Constant Field Values

eventLogger

protected Logger eventLogger
Constructor Detail

Log4jNotificationLoggerAgent

public Log4jNotificationLoggerAgent()
Method Detail

getDescription

public String getDescription()
Should be a 1 line description of the agent

Specified by:
getDescription in interface Agent
Overrides:
getDescription in class AbstractAgent
Returns:
a 1 line description of the agent.

getLogName

public String getLogName()

setLogName

public void setLogName(String logName)

doInitialise

protected void doInitialise()
                     throws InitialisationException
Specified by:
doInitialise in class AbstractNotificationLoggerAgent
Throws:
InitialisationException

logEvent

protected void logEvent(ServerNotification e)
Specified by:
logEvent in class AbstractNotificationLoggerAgent

getLogFile

public String getLogFile()

setLogFile

public void setLogFile(String logFile)

getLogConfigFile

public String getLogConfigFile()

setLogConfigFile

public void setLogConfigFile(String logConfigFile)

getChainsawHost

public String getChainsawHost()

setChainsawHost

public void setChainsawHost(String chainsawHost)

getChainsawPort

public int getChainsawPort()

setChainsawPort

public void setChainsawPort(int chainsawPort)

getLevelMappings

public Map<String,String> getLevelMappings()

setLevelMappings

public void setLevelMappings(Map<String,String> levelMappings)


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.