Packageorg.as3commons.logging.setup.target
Classpublic final class MonsterDebuggerTarget
InheritanceMonsterDebuggerTarget Inheritance Object
Implements IColorableLogTarget

Since : 2.0

MonsterDebuggerTarget logs directly to the monster debugger.

The Monster Debugger is an alternative way to display your logging statements. This target is pretty straightforward about sending it to the Monster Debugger.

See also

http://demonsterdebugger.com


Public Properties
 PropertyDefined By
  colors : Object
[write-only] The colors used to to send the log statement.
MonsterDebuggerTarget
  format : String
[write-only]
MonsterDebuggerTarget
Public Methods
 MethodDefined By
  
MonsterDebuggerTarget(format:String = null, colors:Object = null)
Constructs a new MonsterDebuggerTarget
MonsterDebuggerTarget
  
log(name:String, shortName:String, level:int, timeStamp:Number, message:*, parameters:Array, person:String):void
Renders a log statement.
MonsterDebuggerTarget
Public Constants
 ConstantDefined By
  DEFAULT_COLORS : Object
[static] Default colors used to color the output statements.
MonsterDebuggerTarget
  DEFAULT_FORMAT : String = {time} {shortName}{atPerson} - {message}
[static] Default output format used to stringify the log statements.
MonsterDebuggerTarget
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
formatproperty 
format:String  [write-only]


Implementation
    public function set format(value:String):void
Constructor Detail
MonsterDebuggerTarget()Constructor
public function MonsterDebuggerTarget(format:String = null, colors:Object = null)

Constructs a new MonsterDebuggerTarget

Parameters
format:String (default = null) — Default format used to render log statements.
 
colors:Object (default = null) — Default colors used to color 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 = {time} {shortName}{atPerson} - {message}

Default output format used to stringify the log statements.