Packageorg.as3commons.logging.setup
Classpublic class LevelTargetSetup
InheritanceLevelTargetSetup Inheritance Object
Implements ILogSetup

Since : 2

LevelTargetSetup can limit a ILogTarget to be used just for certain levels.

View the examples

See also

org.as3commons.logging.LOGGER_FACTORY


Public Methods
 MethodDefined By
  
Constructs a new LevelTargetSetup.
LevelTargetSetup
  
applyTo(logger:Logger):void
Sets targets of the passed-in Logger to the ones desired by the setup.
LevelTargetSetup
Constructor Detail
LevelTargetSetup()Constructor
public function LevelTargetSetup(target:ILogTarget, level:LogSetupLevel)

Constructs a new LevelTargetSetup.

Parameters
target:ILogTarget — Target which should be receiving the log output.
 
level:LogSetupLevel — Level at which the target should be receiving the output.
Method Detail
applyTo()method
public function applyTo(logger:Logger):void

Sets targets of the passed-in Logger to the ones desired by the setup.

The setup should fill the desired targets to the Logger instances created by LoggerFactory.

Parameters

logger:LoggerLogger to be augmented by the setup

Examples
        LOGGER_FACTORY.setup = new LevelTargetSetup(TRACE_TARGET, LogSetupLevel.DEBUG_ONLY );
        // Will trace output just the .debug statements