org.mule.impl.internal.admin
Class Log4jNotificationLoggerAgent

java.lang.Object
  extended byorg.mule.impl.internal.admin.AbstractNotificationLoggerAgent
      extended byorg.mule.impl.internal.admin.Log4jNotificationLoggerAgent
All Implemented Interfaces:
Disposable, Initialisable, Lifecycle, Startable, Stoppable, UMOAgent

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.impl.internal.admin.AbstractNotificationLoggerAgent
logger
 
Constructor Summary
Log4jNotificationLoggerAgent()
           
 
Method Summary
protected  void doInitialise()
           
 String getChainsawHost()
           
 int getChainsawPort()
           
 String getDescription()
          Should be a 1 line description of the agent
 Map getLevelMappings()
           
 String getLogConfigFile()
           
 String getLogFile()
           
 String getLogName()
           
protected  void logEvent(UMOServerNotification e)
           
 void setChainsawHost(String chainsawHost)
           
 void setChainsawPort(int chainsawPort)
           
 void setLevelMappings(Map levelMappings)
           
 void setLogConfigFile(String logConfigFile)
           
 void setLogFile(String logFile)
           
 void setLogName(String logName)
           
 
Methods inherited from class org.mule.impl.internal.admin.AbstractNotificationLoggerAgent
dispose, getName, initialise, isIgnoreAdminNotifications, isIgnoreComponentNotifications, isIgnoreConnectionNotifications, isIgnoreCustomNotifications, isIgnoreManagementNotifications, isIgnoreManagerNotifications, isIgnoreModelNotifications, isIgnoreSecurityNotifications, registered, setIgnoreAdminNotifications, setIgnoreComponentNotifications, setIgnoreConnectionNotifications, setIgnoreCustomNotifications, setIgnoreManagementNotifications, setIgnoreManagerNotifications, setIgnoreModelNotifications, setIgnoreSecurityNotifications, setName, start, stop, unregistered
 
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

Returns:
the description of this 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(UMOServerNotification 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 getLevelMappings()

setLevelMappings

public void setLevelMappings(Map levelMappings)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.