| Package | org.as3commons.logging.setup |
| Class | public final class WrapperRegExpSetup |
| Inheritance | WrapperRegExpSetup Object |
| Implements | ILogSetup |
| Since : | 2.6 |
WrapperRegExpSetup allows regular ILogSetup implementations
to be just executed if a the name and/or the person of the logger that should be "set-up"
to match a regular expression.
| Method | Defined By | ||
|---|---|---|---|
WrapperRegExpSetup(target:ILogSetup, nameRule:RegExp = null, personRule:RegExp = null)
Constructs a new WrapperRegExpSetup that applies a setup
just if it matches to the passed-in rules. | WrapperRegExpSetup | ||
Sets targets of the passed-in Logger to the ones
desired by the setup. | WrapperRegExpSetup | ||
| WrapperRegExpSetup | () | Constructor |
public function WrapperRegExpSetup(target:ILogSetup, nameRule:RegExp = null, personRule:RegExp = null)
Constructs a new WrapperRegExpSetup that applies a setup
just if it matches to the passed-in rules.
You have to pass in either a rule for the person.
Parameterstarget:ILogSetup — Setup that will be used given the rules match
| |
nameRule:RegExp (default = null) — Rule to which the name has to match for the target to be applied
| |
personRule:RegExp (default = null) — Rule to which the person has to match for the target to be applied
|
Error — if neighter a rule for name nor one for person will be passed in.
|
| 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:Logger — Logger to be augmented by the setup
|