RichInternetHandler
| Kind of class: | class |
|---|---|
| Inherits from: | AbstractLogHandler < BasicClass |
| Implements: | |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.env.log.handler.RichInternetHandler |
| File last modified: | Friday, 13 May 2005, 16:58:10 |
RichInternetHandler logs messages to Dirk Eisman's Flex Trace Panel.The de.richinternet.utils.Dumper class is needed.
Summary
Constructor
Instance properties
Instance properties inherited from AbstractLogHandler
Class methods
Instance methods
Instance methods inherited from AbstractLogHandler
Instance methods inherited from BasicClass
Constructor
RichInternetHandler
function RichInternetHandler (
messageStringifier:Stringifier)
Constructs a new
RichInternetHandler instance.You can use one and the same instance for multiple loggers. So think about
using the handler returned by the static getInstance method. Using this
instance prevents the instantiation of unnecessary rich internet handlers and
saves storage.
Parameters:
messageStringifier:
(optional) the log message stringifier to use
Class methods
getInstance
static function getInstance (
messageStringifier:Stringifier) : RichInternetHandler
Returns an instance of this class.
This method always returns the same instance.
The messageStringifier argument is only recognized on first
invocation of this method.
Parameters:
messageStringifier:
(optional) the log message stringifier to be used by
the returned handler
the returned handler
Returns:
a rich internet handler
Instance methods
write
function write (
message:LogMessage) : Void
Writes log messages to Dirk Eisman's Flex Trace Panel.
The string representation of the message to log is obtained via
the convertMessage method.
The default level is INFO. If the message's level is FATAL
it will be logged at ERROR level because Dirk Eisman's Flex Trace Panel
does not support the FATAL level.
Parameters:
message:
the message to log
Specified by: