| Package | org.as3commons.logging.setup.target |
| Class | public final class MonsterDebugger3TraceTarget |
| Inheritance | MonsterDebugger3TraceTarget 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
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| Constant | Defined 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 | ||
| 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| depth | property |
depth:int [write-only] Depth used to introspect objects.
public function set depth(value:int):void| format | property |
format:String [write-only]
public function set format(value:String):void| label | property |
label:String [write-only] public function set label(value:String):void| MonsterDebugger3TraceTarget | () | Constructor |
public function MonsterDebugger3TraceTarget(format:String = null, colors:Object = null, depth:int = 5, label:String = null)
Constructs a new MonsterDebugger3Target
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
|
| 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 = {message}Default output format used to stringify log statements via MonsterDebugger.trace().
| DEFAULT_LABEL_FORMAT | Constant |
public static const DEFAULT_LABEL_FORMAT:String = {logLevel}Default label format used to fill the label field of the target