Packageorg.spicefactory.lib.logging.impl
Classpublic class AbstractAppender
ImplementsAppender
SubclassesSOSAppender, TraceAppender

Abstract base implementation of the Appender interface.



Public Properties
 PropertyDefined by
  threshold : LogLevel
The threshold level for this Appender.
AbstractAppender
Public Methods
 MethodDefined by
  
registerLogger(logger:Logger):void
Registers the specified Logger with this Appender.
AbstractAppender
Protected Methods
 MethodDefined by
  
Invoked whenever a Logger instance registered with this Appender fires a LogEvent.
AbstractAppender
  
isBelowThreshold(level:LogLevel):Boolean
Checks whether the specified LogLevel is below the threshold of this Appender.
AbstractAppender
Property detail
thresholdproperty
threshold:LogLevel  [read-write]

The threshold level for this Appender. The Appender threshold is an additional filtering mechanism to the log level of Logger instances. Any log messages with a log level below the threshold will be ignored by this Appender.

Implementation
    public function get threshold():LogLevel
    public function set threshold(value:LogLevel):void
Method detail
handleLogEvent()method
protected function handleLogEvent(event:LogEvent):void

Invoked whenever a Logger instance registered with this Appender fires a LogEvent.

Parameters
event:LogEvent — the LogEvent to handle
isBelowThreshold()method 
protected function isBelowThreshold(level:LogLevel):Boolean

Checks whether the specified LogLevel is below the threshold of this Appender.

Parameters
level:LogLevel — the LogLevel to compare to the threshold of this Appender

Returns
Boolean — true if the specified LogLevel is below the threshold of this Appender
registerLogger()method 
public function registerLogger(logger:Logger):void

Registers the specified Logger with this Appender. Implementations usually register listeners for LogEvents of the specified Logger.

Parameters
logger:Logger — the logger to register with this Appender