| Package | org.as3commons.logging.setup.target |
| Class | public final class MonsterDebuggerTarget |
| Inheritance | MonsterDebuggerTarget 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
| Property | Defined By | ||
|---|---|---|---|
| colors : Object [write-only]
The colors used to to send the log statement. | MonsterDebuggerTarget | ||
| format : String [write-only]
| MonsterDebuggerTarget | ||
| Method | Defined 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 | ||
| Constant | Defined 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 | ||
| colors | property |
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.
public function set colors(value:Object):void| format | property |
format:String [write-only]
public function set format(value:String):void| MonsterDebuggerTarget | () | Constructor |
public function MonsterDebuggerTarget(format:String = null, colors:Object = null)
Constructs a new MonsterDebuggerTarget
format:String (default = null) — Default format used to render log statements.
| |
colors:Object (default = null) — Default colors used to color log statements.
|
| log | () | method |
public function log(name:String, shortName:String, level:int, timeStamp:Number, message:*, parameters:Array, person:String):voidRenders 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.
|
| DEFAULT_COLORS | Constant |
public static const DEFAULT_COLORS:ObjectDefault colors used to color the output statements.
| DEFAULT_FORMAT | Constant |
public static const DEFAULT_FORMAT:String = {time} {shortName}{atPerson} - {message}Default output format used to stringify the log statements.