| Package | org.as3commons.logging.setup.target |
| Interface | public interface IFormattingLogTarget extends ILogTarget |
| Implementors | ASAPTarget, ArthropodTarget, DConsoleTarget, FirebugTarget, FlashConsoleTarget, MateTarget, Progression4Target, SOSTarget, SpiceLibTarget, TextFieldTarget, TraceTarget, TrazzleTarget, YalogTarget |
| Since : | 2 |
IFormattingLogTarget is a ILogTarget that formats
the input to a string.
See also
| Property | Defined By | ||
|---|---|---|---|
| format : String [write-only]
Defines the format used by the target to transform the log statement
to a string. | IFormattingLogTarget | ||
| 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):voidSee also
formattingLogTarget.format = "{shortName} - {logLevel) - {message}";
logger = getLogger(mypackage.MyClass);
logger.debug('Hello World');
// example output: 'MyClass - DEBUG - Hello World';