Packageorg.as3commons.logging.setup.target
Interfacepublic interface IFormattingLogTarget extends ILogTarget
Implementors ASAPTarget, ArthropodTarget, DConsoleTarget, FirebugTarget, FlashConsoleTarget, MateTarget, Progression4Target, SOSTarget, SpiceLibTarget, TextFieldTarget, TraceTarget, TrazzleTarget, YalogTarget

Since : 2

A IFormattingLogTarget is a ILogTarget that formats the input to a string.

See also

org.as3commons.logging.util.LogMessageFormatter


Public Properties
 PropertyDefined By
  format : String
[write-only] Defines the format used by the target to transform the log statement to a string.
IFormattingLogTarget
Public Methods
 MethodDefined By
 Inherited
log(name:String, shortName:String, level:int, timeStamp:Number, message:*, parameters:Array, person:String):void
Renders a log statement.
ILogTarget
Property Detail
formatproperty
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:

FieldDescription
{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


Implementation
    public function set format(value:String):void

See also


Example
            formattingLogTarget.format = "{shortName} - {logLevel) - {message}";
            logger = getLogger(mypackage.MyClass);
            logger.debug('Hello World');
            // example output: 'MyClass - DEBUG - Hello World';