Static utility methods for formatting log output.
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
|
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
|
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
|
public static function getLogName(object:Object):String
Retutns the name for a logger as a String based on the specified object.
If the name parameter is a Class
instance, the fully qualified class name will be used. Otherwise the toString
method will be invoked on the given name instance.
Parameters
Returns