Public Methods
 FunctionDefined By
  
Merges a list of ILogTarget instances to one instance.
org.as3commons.logging.setup.target
Function detail
mergeTargets()function
public function mergeTargets(... targets):ILogTarget

Since : 2

Merges a list of ILogTarget instances to one instance.

This method is pretty useful if you want use more than one target for to be triggered from the same logger. The resulting ILogTarget of this method will log to all the targets passed in.

Parameters

... targets — All the targets that should be merged.

Returns
ILogTarget — A target that will log to all the passed-in targets.

Example
       LOGGER_FACTORY.setup = new SimpleTargetSetup(
         mergeTargets( TRACE_TARGET, new SOSTarget, new TextFieldTarget )
       );
       // now all log statements go to all three targets!