| Package | org.as3commons.logging.setup |
| Class | public class LevelTargetSetup |
| Inheritance | LevelTargetSetup Object |
| Implements | ILogSetup |
| Since : | 2 |
LevelTargetSetup can limit a ILogTarget to be
used just for certain levels.
See also
| Method | Defined By | ||
|---|---|---|---|
Constructs a new LevelTargetSetup. | LevelTargetSetup | ||
Sets targets of the passed-in Logger to the ones
desired by the setup. | LevelTargetSetup | ||
| LevelTargetSetup | () | Constructor |
public function LevelTargetSetup(target:ILogTarget, level:LogSetupLevel)
Constructs a new LevelTargetSetup.
target:ILogTarget — Target which should be receiving the log output.
| |
level:LogSetupLevel — Level at which the target should be receiving the output.
|
| 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
|
LOGGER_FACTORY.setup = new LevelTargetSetup(TRACE_TARGET, LogSetupLevel.DEBUG_ONLY );
// Will trace output just the .debug statements