LogHandler
LevelFilterHandler filters log messages depending on their level.
public function LevelFilterHandler(handler:LogHandler, level:LogLevel)
Constructs a new LevelFilterHandler instance.
All log messages with a lower level than the passed-in level get
filtered out.
If level is not passed-in or is null or undefined all
levels will be allowed, this means it will be set to
AbstractLogLevel.ALL.
handler | the handler to forward not-filtered log messages to |
| IllegalArgumentException | if the passed-in handler is
null or undefined
|
static public ALL:LogLevelstatic public DEBUG:LogLevelstatic public INFO:LogLevelstatic public WARNING:LogLevelstatic public ERROR:LogLevelstatic public FATAL:LogLevelstatic public NONE:LogLevelpublic function getHandler(Void):LogHandlerReturns the wrapped handler not-filtered log messages are fowarded to.
the wrapped handler
public function getLevel(Void):LogLevelReturns the lowest level messages can have that are not filtered. All messages at a lower level than the returned one are filtered.
the lowest level of messages that are not filtered
public function write(message:LogMessage):Void
Forwards that passed-in message to the wrapped handler if the message
has a higher or the same level than the specified one.
message | the message to forward to the wrapped handler |