out

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.

Summary
outLog class that forwards messages to a trace local connection.
Logging internals
INFOInformational logging level
DEBUGDebug logging level
WARNINGWarning logging level
ERRORError logging level
FATALFatal error logging level
lcThe destination of trace output
_traceForward messages to a trace local connection which is established if required.
onStatusCatches the onStatus event so it does not cause an exception
Logging methods
traceTrace arguments with the default style
infoTrace arguments with the informational style
debugTrace arguments with the debug style
warningTrace arguments with the warning style
errorTrace arguments with the error style
fatalTrace arguments with the fatal error style
traceTypeTrace object type information tagged with the name
traceTimeTrace arguments with a timestamp
traceDisplayListLogs the display list of a DisplayObjectContainer with the INFO level.
Logging helpers
traverseDisplayListRecursively traverses the display list gathering display object information
timeStampFormats a timestamp to a sortable, fixed-width time format
zeroPadConvert a number to a string and pad with zeros until length is reached

Logging internals

INFO

public static const INFO: String

Informational logging level

DEBUG

public static const DEBUG: String

Debug logging level

WARNING

public static const WARNING: String

Warning logging level

ERROR

public static const ERROR: String

Error logging level

FATAL

public static const FATAL: String

Fatal error logging level

lc

private static var lc: LocalConnection

The destination of trace output

_trace

private static function _trace(msg: String,
level: String):void

Forward messages to a trace local connection which is established if required.

onStatus

private static function onStatus(event: StatusEvent):void

Catches the onStatus event so it does not cause an exception

Logging methods

trace

public static function trace(... args):void

Trace arguments with the default style

info

public static function info(... args):void

Trace arguments with the informational style

debug

public static function debug(... args):void

Trace arguments with the debug style

warning

public static function warning(... args):void

Trace arguments with the warning style

error

public static function error(... args):void

Trace arguments with the error style

fatal

public static function fatal(... args):void

Trace arguments with the fatal error style

traceType

public static function traceType(name: String,
obj: Object):void

Trace object type information tagged with the name

traceTime

public static function traceTime(... args):void

Trace arguments with a timestamp

traceDisplayList

public static function traceDisplayList(displayObject: DisplayObject):void

Logs the display list of a DisplayObjectContainer with the INFO level.

Parameters

displayObjectThe DisplayObject or DisplayObjectContainer to inspect.

Logging helpers

traverseDisplayList

private static function traverseDisplayList(displayObject: Object,  
indent: String = ""):String

Recursively traverses the display list gathering display object information

timeStamp

private static function timeStamp():String

Formats a timestamp to a sortable, fixed-width time format

zeroPad

private static function zeroPad(num: Number,
len: int):String

Convert a number to a string and pad with zeros until length is reached

Parameters

numnumber to be converted to a string
lenminimum length of converted string

Returns

String prepended with zeros if smaller than length

public static const INFO: String
Informational logging level
public static const DEBUG: String
Debug logging level
public static const WARNING: String
Warning logging level
public static const ERROR: String
Error logging level
public static const FATAL: String
Fatal error logging level
private static var lc: LocalConnection
The destination of trace output
private static function _trace(msg: String,
level: String):void
Forward messages to a trace local connection which is established if required.
private static function onStatus(event: StatusEvent):void
Catches the onStatus event so it does not cause an exception
public static function trace(... args):void
Trace arguments with the default style
public static function info(... args):void
Trace arguments with the informational style
public static function debug(... args):void
Trace arguments with the debug style
public static function warning(... args):void
Trace arguments with the warning style
public static function error(... args):void
Trace arguments with the error style
public static function fatal(... args):void
Trace arguments with the fatal error style
public static function traceType(name: String,
obj: Object):void
Trace object type information tagged with the name
public static function traceTime(... args):void
Trace arguments with a timestamp
public static function traceDisplayList(displayObject: DisplayObject):void
Logs the display list of a DisplayObjectContainer with the INFO level.
private static function traverseDisplayList(displayObject: Object,  
indent: String = ""):String
Recursively traverses the display list gathering display object information
private static function timeStamp():String
Formats a timestamp to a sortable, fixed-width time format
private static function zeroPad(num: Number,
len: int):String
Convert a number to a string and pad with zeros until length is reached
Close