| Package | org.spicefactory.lib.logging.impl |
| Class | public class AbstractAppender |
| Inheritance | AbstractAppender Object |
| Implements | Appender |
| Subclasses | SOSAppender, TraceAppender |
Appender interface.
| Property | Defined By | ||
|---|---|---|---|
| threshold : LogLevel
The threshold level for this Appender. | AbstractAppender | ||
| Method | Defined By | ||
|---|---|---|---|
registerLogger(logger:SpiceLogger):void
Registers the specified Logger with this Appender. | AbstractAppender | ||
| Method | Defined By | ||
|---|---|---|---|
handleLogEvent(event:LogEvent):void
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 | ||
| threshold | property |
threshold:LogLevelThe 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.
public function get threshold():LogLevel public function set threshold(value:LogLevel):void| 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
|
Boolean — true if the specified LogLevel is below
the threshold of this Appender
|
| registerLogger | () | method |
public function registerLogger(logger:SpiceLogger):voidRegisters 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
|