Access keys

FlashoutHandler

Kind of class: class
Inherits from: AbstractLogHandler < BasicClass
Implements:
Author: Simon Wacker
Classpath: org.as2lib.env.log.handler.FlashoutHandler
File last modified: Tuesday, 28 June 2005, 19:18:26
FlashoutHandler logs messages to the Flashout console.

The Flashout class is needed.

Note that if you are working with the Flashout 0.2.* you have to specify
Flashout's custom trace method as trace replacement when compiling your classes
with MTASC.

Summary

Constructor
Instance properties
Instance properties inherited from AbstractLogHandler
Class methods
Instance methods
Instance methods inherited from AbstractLogHandler
Instance methods inherited from BasicClass

Constructor

FlashoutHandler

function FlashoutHandler (
messageStringifier:Stringifier)
Constructs a new FlashoutHandler 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 flashout handlers and
saves storage.

Parameters:
messageStringifier:
(optional) the log message stringifier to use

Class methods

getInstance

static function getInstance (
messageStringifier:Stringifier) : FlashoutHandler
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
Returns:
a flashout handler

Instance methods

write

function write (
message:LogMessage) : Void
Writes log messages to the Flashout console.

The string representation of the message to log is obtained via
the convertMessage method.

Every As2lib Logging API log level that has a mapping to the log levels of
Flashout is mapped to the correct one. If no mapping is found, Flashout.log
is used.

Parameters:
message:
the message to log