jrunx.logger
Class ConsoleLogEventHandler

jrunx.kernel.ServiceAdapter
  |
  +--jrunx.kernel.ServicePartition
        |
        +--jrunx.kernel.ConfigurableServicePartition
              |
              +--jrunx.logger.LogEventHandler
                    |
                    +--jrunx.logger.ConsoleLogEventHandler
All Implemented Interfaces:
ConfigurableServicePartitionMBean, LogEventHandlerMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean

public class ConsoleLogEventHandler
extends LogEventHandler

Sends log events to the console (stdout and stderr)

Author:
Karl Moss
See Also:
Serialized Form

Fields inherited from class jrunx.kernel.ServicePartition
sortedServices
 
Fields inherited from class jrunx.kernel.ServiceAdapter
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
ConsoleLogEventHandler()
           
 
Method Summary
 void init()
          Not every service needs to init, implement it out of convenience.
 boolean logEvent(LogEvent event)
           
 
Methods inherited from class jrunx.logger.LogEventHandler
clearBuffer, flush, getFormat, log, setFormat
 
Methods inherited from class jrunx.kernel.ConfigurableServicePartition
destroy, destroyServices, initServices, loadAndInit, loadChildren, setChildElements, start, startServices, stop, stopServices
 
Methods inherited from class jrunx.kernel.ServicePartition
addService, addService, getServices, invokeChain, iterator, removeService, removeService
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, start, stop, updateStatus
 
Methods inherited from interface jrunx.kernel.ServicePartitionMBean
addService, addService, iterator, removeService, removeService
 

Constructor Detail

ConsoleLogEventHandler

public ConsoleLogEventHandler()
Method Detail

init

public void init()
          throws java.lang.Exception
Description copied from class: ServiceAdapter
Not every service needs to init, implement it out of convenience.
Overrides:
init in class ConfigurableServicePartition

logEvent

public boolean logEvent(LogEvent event)
Overrides:
logEvent in class LogEventHandler


Copyright � 2002 Macromedia Corporation. All Rights Reserved.