API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class Trace

Package | org.openscales.core
Class | public class Trace

Class which allows to show trace messages in the classical flex logger but also in a flex component and in the firebug console if exists. To that goal, we have to use one of its static methods: log(), info(), warning(), error() or debug() instead of the trace native method. It does three things : call trace native method, dispatch a Trace event through the map in order to be able to catch it elsewhere, and display in the firebug console if exists. According to the trace level (log, info, warning, error or debug), the flex component will show it in a diffrent color. More functionnalities are provided for the firebug console : - fbConsole_startGroup(msg): start a group - fbConsole_endGroup(): end a group - fbConsole_startTiming(msg): start a timer - fbConsole_endTiming(msg): end a timer

Public Properties

| Property | Defined by
--- | --- | ---
|  | map : Map = null [static] | Trace
|  | useFireBugConsole : Boolean = false [static] | Trace

Public Methods

| Method | Defined by
--- | --- | ---
|  | Trace() Constructor | Trace
|  | debug(text:String):void [static] Display a debug information | Trace
|  | error(text:String):void [static] Display an error | Trace
|  | fbConsole_endGroup():void [static] End a group in a firebug console | Trace
|  | fbConsole_endTiming(text:String):void [static] Stop and display the timer in a firebug console | Trace
|  | fbConsole_startGroup(text:String):void [static] Start a group in a firebug console | Trace
|  | fbConsole_startTiming(text:String):void [static] Start a timer in a firebug console | Trace
|  | info(text:String):void [static] Display an information | Trace
|  | log(text:String):void [static] Display a log | Trace
|  | warning(text:String):void [static] Display an warning | Trace

Property detail

map | property

`public static var map:Map = null`

useFireBugConsole | property |

`public static var useFireBugConsole:Boolean = false`
Constructor detail

Trace | () | constructor

`public function Trace()`

Constructor

Method detail

debug | () | method

`public static function debug(text:String):void`

Display a debug information

Parameters

| `text:String`

error | () | method |

`public static function error(text:String):void`

Display an error

Parameters

| `text:String`

fbConsole_endGroup | () | method |

`public static function fbConsole_endGroup():void`

End a group in a firebug console

fbConsole_endTiming | () | method |

`public static function fbConsole_endTiming(text:String):void`

Stop and display the timer in a firebug console

Parameters

| `text:String`

fbConsole_startGroup | () | method |

`public static function fbConsole_startGroup(text:String):void`

Start a group in a firebug console

Parameters

| `text:String`

fbConsole_startTiming | () | method |

`public static function fbConsole_startTiming(text:String):void`

Start a timer in a firebug console

Parameters

| `text:String`

info | () | method |

`public static function info(text:String):void`

Display an information

Parameters

| `text:String`

log | () | method |

`public static function log(text:String):void`

Display a log

Parameters

| `text:String`

warning | () | method |

`public static function warning(text:String):void`

Display an warning

Parameters

| `text:String`