Class fvaswing.utils.tracer.FvAsWingTracer

Implemented Interfaces

LogListener

Description

Displays log messages from Pixlib Logging API.

Implements Pixlib LogListener interface

Example

   Logger.getInstance().addLogListener( FvAsWingTracer.getInstance(), FeverDebug.channel );
   
   FeverDebug.WARN( "A warning message" );
 

Method Index

buildLogMessage(), connect(), getContainer(), getInstance(), onLog(), open()

Method Detail

connect

static public function connect(channel:LogChannel):FvAsWingTracer

Creates FvAsWingTracer instance and connects it to passed channel for logging API.

Example

 
   FvAsWingTracer.connect( FeverDebug.channel ).open();
 

getInstance

static public function getInstance():FvAsWingTracer

Creates and returns a FvAsWingTracer instance.

onLog

public function onLog(e:LogEvent):Void

Sends log message obtained from the passed-in e model to all registred Logger listeners.

Parameters

ePixlib LogEvent instance

buildLogMessage

public function buildLogMessage(e:LogEvent):String

Builds custom log message.

Overrides this method to customize your message ouput.

Return

String

open

public function open():Void

Opens tracer in dialog mode.

getContainer

public function getContainer():Container

Returns only logging container ( not frame ).