Packageorg.as3commons.logging.setup.target
Interfacepublic interface IColorableLogTarget extends ILogTarget
Implementors MonsterDebugger3TraceTarget, MonsterDebuggerTarget

Since : 2.5

This interface describes targets that allow coloring of log statements.



Public Properties
 PropertyDefined By
  colors : Object
[write-only] The colors used to to send the log statement.
IColorableLogTarget
Public Methods
 MethodDefined By
 Inherited
log(name:String, shortName:String, level:int, timeStamp:Number, message:*, parameters:Array, person:String):void
Renders a log statement.
ILogTarget
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

Example
             import org.as3commons.logging.level.
             
             target.colors = {
               DEBUG: 0x00FF00,
               INFO: 0x00FFFF,
               WARN: 0xFF0000,
               ERROR: 0x0000FF,
               FATAL: 0xFFFF00
             };