| Package | org.as3commons.logging.setup.target |
| Class | public final class Log5FTarget |
| Inheritance | Log5FTarget Object |
| Implements | ILogTarget |
| Since : | 2.6 |
As Log5F does not implement the same logic as as3commons we send a formatted string to Log5F.
See also
| Property | Defined By | ||
|---|---|---|---|
| format : String [write-only]
| Log5FTarget | ||
| Method | Defined By | ||
|---|---|---|---|
Log5FTarget(format:String = null)
Creates a new Log5FTarget instance. | Log5FTarget | ||
log(name:String, shortName:String, level:int, timeStamp:Number, message:*, parameters:Array, person:String):void
Renders a log statement. | Log5FTarget | ||
| Constant | Defined By | ||
|---|---|---|---|
| DEFAULT_FORMAT : String = {time} {logLevel} - {shortName}{atPerson} - {message} [static] Default format to be used for formatting statements. | Log5FTarget | ||
| format | property |
format:String [write-only]
public function set format(value:String):void| Log5FTarget | () | Constructor |
public function Log5FTarget(format:String = null)
Creates a new Log5FTarget instance.
format:String (default = null) — Default format to for the logging, if null, it will use
the DEFAULT_FORMAT.
|
| log | () | method |
public function log(name:String, shortName:String, level:int, timeStamp:Number, message:*, parameters:Array, person:String):voidRenders a log statement.
In version 2.5 the person information was added and the time stamp
was modified to represent the local time rather than the time in gmt.
Add START_TIME to get the time in ms since 1970.
Parameters
name:String — Name of the logger that triggered the log statement.
| |
shortName:String — Shortened form of the name.
| |
level:int — Level of the log statement that got triggered.
| |
timeStamp:Number — getTimer() Timestame of when the log statement was triggered.
| |
message:* — Message of the log statement.
| |
parameters:Array — Parameters for the log statement.
| |
person:String — Information about the person that filed this log statement.
|
| DEFAULT_FORMAT | Constant |
public static const DEFAULT_FORMAT:String = {time} {logLevel} - {shortName}{atPerson} - {message}Default format to be used for formatting statements.