Packageorg.spicefactory.lib.logging
Classpublic class LogUtil
InheritanceLogUtil Inheritance Object

Static utility methods for logging.



Public Methods
 MethodDefined By
  
buildLogMessage(message:String, params:Array):String
[static] Builds the log message from the specified message and parameters.
LogUtil
  
getLogName(object:Object):String
[static] Retutns the name for a logger as a String based on the specified object.
LogUtil
Method Detail
buildLogMessage()method
public static function buildLogMessage(message:String, params:Array):String

Builds the log message from the specified message and parameters. The message may contain numbered placeholders like '{0}' which will be replaced by the specified parameters. For parameters of type Error the whole stacktrace will be included.

Parameters

message:String — the message, possibly containing parameter placeholders
 
params:Array — the parameters to fill the placeholders with

Returns
String — the fully resolved log message
getLogName()method 
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

object:Object

Returns
String