Log class that forwards messages to a trace local connection. It provides for time stamps, type information and recursive listing of display objects. To use it you need a separate program that can read the shared memory messages used by the local connection class. If you do not have such a program for your OS then consider using global trace and fdb instead.
out | Log class that forwards messages to a trace local connection. |
Logging internals | |
INFO | Informational logging level |
DEBUG | Debug logging level |
WARNING | Warning logging level |
ERROR | Error logging level |
FATAL | Fatal error logging level |
lc | The destination of trace output |
_trace | Forward messages to a trace local connection which is established if required. |
onStatus | Catches the onStatus event so it does not cause an exception |
Logging methods | |
trace | Trace arguments with the default style |
info | Trace arguments with the informational style |
debug | Trace arguments with the debug style |
warning | Trace arguments with the warning style |
error | Trace arguments with the error style |
fatal | Trace arguments with the fatal error style |
traceType | Trace object type information tagged with the name |
traceTime | Trace arguments with a timestamp |
traceDisplayList | Logs the display list of a DisplayObjectContainer with the INFO level. |
Logging helpers | |
traverseDisplayList | Recursively traverses the display list gathering display object information |
timeStamp | Formats a timestamp to a sortable, fixed-width time format |
zeroPad | Convert a number to a string and pad with zeros until length is reached |
Informational logging level
public static const INFO: String
Debug logging level
public static const DEBUG: String
Warning logging level
public static const WARNING: String
Error logging level
public static const ERROR: String
Fatal error logging level
public static const FATAL: String
The destination of trace output
private static var lc: LocalConnection
Forward messages to a trace local connection which is established if required.
private static function _trace( msg: String, level: String ):void
Catches the onStatus event so it does not cause an exception
private static function onStatus( event: StatusEvent ):void
Trace arguments with the default style
public static function trace( ... args ):void
Trace arguments with the informational style
public static function info( ... args ):void
Trace arguments with the debug style
public static function debug( ... args ):void
Trace arguments with the warning style
public static function warning( ... args ):void
Trace arguments with the error style
public static function error( ... args ):void
Trace arguments with the fatal error style
public static function fatal( ... args ):void
Trace object type information tagged with the name
public static function traceType( name: String, obj: Object ):void
Trace arguments with a timestamp
public static function traceTime( ... args ):void
Logs the display list of a DisplayObjectContainer with the INFO level.
public static function traceDisplayList( displayObject: DisplayObject ):void
Recursively traverses the display list gathering display object information
private static function traverseDisplayList( displayObject: Object, indent: String = "" ):String
Formats a timestamp to a sortable, fixed-width time format
private static function timeStamp():String
Convert a number to a string and pad with zeros until length is reached
private static function zeroPad( num: Number, len: int ):String