| Package | org.as3commons.logging.setup.target |
| Class | public final class YalogTarget |
| Inheritance | YalogTarget Object |
| Implements | IFormattingLogTarget |
| Since : | 2.5.2 |
YalogTarget sends all statements to the Yalog logger
LOGGER_FACTORY.setup = new SimpleTargetSetup( new YalogTarget );
See also
| Property | Defined By | ||
|---|---|---|---|
| format : String [write-only]
Defines the format used by the target to transform the log statement
to a string. | YalogTarget | ||
| Method | Defined By | ||
|---|---|---|---|
YalogTarget(format:String = null)
Creates a new YalogTarget
| YalogTarget | ||
log(name:String, shortName:String, level:int, timeStamp:Number, message:*, parameters:Array, person:String):void
Renders a log statement. | YalogTarget | ||
| format | property |
format:String [write-only] Defines the format used by the target to transform the log statement to a string.
The format passed in can use any of the the following definitions:
| Field | Description |
|---|---|
| {date} | The date in the format YYYY/MM/DD |
| {dateUTC} | The UTC date in the format YYYY/MM/DD |
| {gmt} | The time offset of the statement to the Greenwich mean time in the format GMT+9999 |
| {logLevel} | The level of the log statement (example: DEBUG ) |
| {logTime} | The UTC time in the format HH:MM:SS.0MS |
| {message} | The message of the logger |
| {message_dqt} | The message of the logger, double quote escaped. |
| {name} | The name of the logger |
| {time} | The time in the format H:M:S.MS |
| {timeUTC} | The UTC time in the format H:M:S.MS |
| {shortName} | The short name of the logger |
| {shortSWF} | The SWF file name |
| {swf} | The full SWF path |
| {person} | The Person that wrote this statement |
| {atPerson} | The Person that wrote this statement with the 'at' prefix |
public function set format(value:String):void| YalogTarget | () | Constructor |
public function YalogTarget(format:String = null)
Creates a new YalogTarget
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.
|