| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
The SosLayout class provides a convenient way
to output messages through SOS Max console.
Example
Add SosLayout as Log listener
//Add console for all channels
Logger.getInstance().addLogListener( SosLayout.getInstance() );
//Add console for a dedicated channel
Logger.getInstance().addLogListener( SosLayout.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" );
public static var IP:String = "localhost"
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
SOS Console IP Address.
The default value is localhost.
public static var PORT:Number = 4444
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
SOS Console connection port.
The default value is 4444.
public function clearOutput():void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Clears console.
public static function getInstance():SosLayout
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns unique instance.
Returns
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 SOS Console is registered as Log listener.
Parameters
| e:LogEvent — LogEvent event containing information about
the message to log.
|
public function output(o:Object, level:LogLevel):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Sends messages to console.
It is a direct access to log message into console without
use the Logging API.
Parameters
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
|
LowRA API documentation 2008- 2009
Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1
mer. févr. 25 2009, 9:22 AM GMT+01:00