Package | org.spicefactory.lib.logging |
Class | public class LogUtil |
Inheritance | LogUtil Object |
Method | Defined 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 |
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
|
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 |
String |