Packageorg.as3commons.logging.setup.target
Classpublic class Progression4Target
InheritanceProgression4Target Inheritance Object
Implements IFormattingLogTarget

Since : 2.5

Progression4Target can send log statements to the logging mechanism used in the Progression framework.

Built on version '4.0.22'.

See also

http://progression.jp/ja/download/
org.as3commons.logging.setup.Progression4Integration()


Public Properties
 PropertyDefined By
  format : String
[write-only] Defines the format used by the target to transform the log statement to a string.
Progression4Target
Public Methods
 MethodDefined By
  
Progression4Target(format:String = null)
Creates a new Progression4Target
Progression4Target
  
log(name:String, shortName:String, level:int, timeStamp:Number, message:*, parameters:Array, person:String):void
Renders a log statement.
Progression4Target
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
Constructor Detail
Progression4Target()Constructor
public function Progression4Target(format:String = null)

Creates a new Progression4Target

Parameters
format:String (default = null) — Default format to for the logging, if null, it will use the DEFAULT_FORMAT.
Method Detail
log()method
public function log(name:String, shortName:String, level:int, timeStamp:Number, message:*, parameters:Array, person:String):void

Renders 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.