Packageorg.as3commons.logging.setup.target
Classpublic final class MonsterDebugger3TraceTarget
InheritanceMonsterDebugger3TraceTarget Inheritance Object
Implements IColorableLogTarget

Since : 2.5

MonsterDebugger3TraceTarget traces directly to the Monster Debugger 3 console.

The Monster Debugger is an alternative way to display your logging statements.

See also

http://demonsterdebugger.com/asdoc/com/demonsters/debugger/MonsterDebugger.html#trace()


Public Properties
 PropertyDefined By
  colors : Object
[write-only] The colors used to to send the log statement.
MonsterDebugger3TraceTarget
  depth : int
[write-only] Depth used to introspect objects.
MonsterDebugger3TraceTarget
  format : String
[write-only]
MonsterDebugger3TraceTarget
  label : String
[write-only]
MonsterDebugger3TraceTarget
Public Methods
 MethodDefined By
  
MonsterDebugger3TraceTarget(format:String = null, colors:Object = null, depth:int = 5, label:String = null)
Constructs a new MonsterDebugger3Target
MonsterDebugger3TraceTarget
  
log(name:String, shortName:String, level:int, timeStamp:Number, message:*, parameters:Array, person:String):void
Renders a log statement.
MonsterDebugger3TraceTarget
Public Constants
 ConstantDefined By
  DEFAULT_COLORS : Object
[static] Default colors used to color the output statements.
MonsterDebugger3TraceTarget
  DEFAULT_FORMAT : String = {message}
[static] Default output format used to stringify log statements via MonsterDebugger.trace().
MonsterDebugger3TraceTarget
  DEFAULT_LABEL_FORMAT : String = {logLevel}
[static] Default label format used to fill the label field of the target
MonsterDebugger3TraceTarget
Property Detail
colorsproperty
colors:Object  [write-only]

The colors used to to send the log statement.

This target supports custom colors for log statements. These can be changed dynamically if you pass here a Dictionary with Colors (numbers) used for all levels:

The default colors used in case null got passed-in should be documented in the implementations.


Implementation
    public function set colors(value:Object):void
depthproperty 
depth:int  [write-only]

Depth used to introspect objects.


Implementation
    public function set depth(value:int):void
formatproperty 
format:String  [write-only]


Implementation
    public function set format(value:String):void
labelproperty 
label:String  [write-only]


Implementation
    public function set label(value:String):void
Constructor Detail
MonsterDebugger3TraceTarget()Constructor
public function MonsterDebugger3TraceTarget(format:String = null, colors:Object = null, depth:int = 5, label:String = null)

Constructs a new MonsterDebugger3Target

Parameters
format:String (default = null) — Format used to render log statements
 
colors:Object (default = null) — Colors used to color log statements
 
depth:int (default = 5) — Depth used to evaluate the object (MonsterDebugger option)
 
label:String (default = null) — Format used to render the label property of log statements
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.

Constant Detail
DEFAULT_COLORSConstant
public static const DEFAULT_COLORS:Object

Default colors used to color the output statements.

DEFAULT_FORMATConstant 
public static const DEFAULT_FORMAT:String = {message}

Default output format used to stringify log statements via MonsterDebugger.trace().

DEFAULT_LABEL_FORMATConstant 
public static const DEFAULT_LABEL_FORMAT:String = {logLevel}

Default label format used to fill the label field of the target