Packageorg.spicefactory.lib.flash.logging
Classpublic class FlashLogUtil
InheritanceFlashLogUtil Inheritance Object

Static utility methods for formatting log output.



Public Methods
 MethodDefined By
  
format(value:*, indent:uint = 0):String
[static] Creates formatted log output for the given value, starting with the specified indentation level.
FlashLogUtil
  
formatArray(arr:Array, indent:uint):String
[static] Creates formatted log output for the given Array, starting with the specified indentation level.
FlashLogUtil
  
formatObject(obj:Object, indent:uint):String
[static] Creates formatted log output for the given Object, starting with the specified indentation level.
FlashLogUtil
Method Detail
format()method
public static function format(value:*, indent:uint = 0):String

Creates formatted log output for the given value, starting with the specified indentation level.

Parameters

value:* — the value to create formatted output for
 
indent:uint (default = 0) — the indentation level to start from

Returns
String — the formatted log output
formatArray()method 
public static function formatArray(arr:Array, indent:uint):String

Creates formatted log output for the given Array, starting with the specified indentation level.

Parameters

arr:Array — the Array to create formatted output for
 
indent:uint — the indentation level to start from

Returns
String — the formatted log output
formatObject()method 
public static function formatObject(obj:Object, indent:uint):String

Creates formatted log output for the given Object, starting with the specified indentation level. Each property name and value for the specified object will be added to the formatted output.

Parameters

obj:Object — the Object to create formatted output for
 
indent:uint — the indentation level to start from

Returns
String — the formatted log output