org.as2lib.core.BasicInterface +--org.as2lib.env.log.LogHandler
LogHandler
is used to actually log messages.
You need different handlers for different output targets. Output targets can be everything, Flash's Output Panel, any type of file, a database, a custom output console and so on.
The As2lib supports a hand full of different output formats. Take a look at
the org.as2lib.env.log.handler
package to see which are supported.
A logger does not have to support the feature of adding custom handlers. It
is not prescribed by the Logger
interface so it depends on specific
implementations. Mostly 'speed' loggers do not use this approach because it
slows the whole logging process a little bit down.
public function write(message:LogMessage):Void
Writes information obtained from the passed-in message
as well as
additional information to the output target.
It is not prescribed which information will be written. Hence it depends on the concrete handler.
Most handlers simply use the LogMessage.toString method to obtain the string representation to log.
message | the message containing the information to log |