Packageorg.as3commons.logging.setup
Classpublic class SimpleTargetSetup
InheritanceSimpleTargetSetup Inheritance Object
Implements ILogSetup

Since : 2.0

The simplest way to use any ILogTarget in the setup process is by using this SimpleTargetSetup.

It does nothing more but redirecting the ILogTarget to all levels of all loggers.

LOGGER_FACTORY.setup = new SimpleTargetSetup( new SOSTarget );

See also

org.as3commons.logging.LoggerFactory;


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

Constructs a new SimpleTargetSetup

Parameters
target:ILogTarget — Target to which the output should flow to.
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