org.norther.tammi.acorn.logger.log
Class LoggerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.norther.tammi.acorn.logger.log.LoggerEvent
All Implemented Interfaces:
Serializable

public class LoggerEvent
extends EventObject

Events of this type are sent to an object that implements the LoggerListener interface when it is activated for a named logger of a log factory.

Version:
$Id: LoggerEvent.java,v 1.7 2009/09/28 15:08:50 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LoggerEvent(LogFactory factory, Object logger)
          Constructs a new event.
 
Method Summary
 LogFactory getLogFactory()
          Gets the log factory.
 Object getLogger()
          Gets the active logger.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoggerEvent

public LoggerEvent(LogFactory factory,
                   Object logger)
Constructs a new event.

Parameters:
factory - the log factory.
logger - the named logger.
Method Detail

getLogFactory

public LogFactory getLogFactory()
Gets the log factory.

Returns:
the log factory.

getLogger

public Object getLogger()
Gets the active logger.

Returns:
the active logger.


Copyright © 2004 The Norther Organization. All rights reserved.