Packageorg.spicefactory.lib.logging.impl
Classpublic class AbstractAppender
InheritanceAbstractAppender Inheritance Object
Implements Appender
Subclasses SOSAppender, 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
  
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

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:SpiceLogger):void

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

Parameters

logger:SpiceLogger — the logger to register with this Appender