Packagecom.bourre.utils
Classpublic class FlashInspectorLayout
ImplementsLogListener

Player version: Flash Player 9.0
Language version: ActionScript 3.0

The FlashInspectorLayout class provides a convenient way to output messages through FlashInspector console.


Example
Add FlashInspectorLayout as Log listener
  
  //Add console for all channels
  Logger.getInstance().addLogListener( FlashInspectorLayout.getInstance() );
  
  //Add console for a dedicated channel
  Logger.getInstance().addLogListener( FlashInspectorLayout.getInstance(), PixlibDebug.CHANNEL );
  

Output message
  
  //Simple ouput
  Logger.DEBUG( "My message" );
  
  //Channel target
  Logger.WARN( "My messsage", PixlibDebug.CHANNEL );
  
  //Channel use
  PixlibDebug.ERROR( "My error" );
  

See also

com.bourre.log.Logger
com.bourre.log.LogListener
com.bourre.log.LogLevel


Public Methods
 MethodDefined by
  
[static] Returns unique instance.
FlashInspectorLayout
  
onLog(e:LogEvent):void
Triggered when a log message is sent to the Logger and the FlashInspector is registered as Log listener.
FlashInspectorLayout
  
toString():String
Returns the string representation of this instance.
FlashInspectorLayout
Public Constants
 ConstantDefined by
  LOCALCONNECTION_ID : String = "_luminicbox_log_console"
FlashInspectorLayout
Method detail
getInstance()method
public static function getInstance():FlashInspectorLayout

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns unique instance.

Returns
FlashInspectorLayout
onLog()method 
public function onLog(e:LogEvent):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Triggered when a log message is sent to the Logger and the FlashInspector is registered as Log listener.

Parameters
e:LogEventLogEvent event containing information about the message to log.
toString()method 
public function toString():String

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns the string representation of this instance.

Returns
String — the string representation of this instance
Constant detail
LOCALCONNECTION_IDconstant
public const LOCALCONNECTION_ID:String = "_luminicbox_log_console"

Player version: Flash Player 9.0
Language version: ActionScript 3.0