| Function | Defined By | ||
|---|---|---|---|
mergeTargets(... targets):ILogTarget
Merges a list of ILogTarget instances to one instance. | org.as3commons.logging.setup.target | ||
| 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.
|
ILogTarget — A target that will log to all the passed-in targets.
|
LOGGER_FACTORY.setup = new SimpleTargetSetup(
mergeTargets( TRACE_TARGET, new SOSTarget, new TextFieldTarget )
);
// now all log statements go to all three targets!