| Package | org.as3commons.logging.setup |
| Class | public final class LogSetupLevel |
| Inheritance | LogSetupLevel Object |
| Since : | 2 |
LogSetupLevel, in contrary to the LogLevel, can
is made to allow certain levels to be activated/deactivated.
Levels are defined by a integer value. Different values can be combined
by using the .or() method.
var debugAndErrorOutput:LogSetupLevel = LogSetupLevel.DEBUG_ONLY.or(LogSetupLevel.ERROR_ONLY);
See also
| Method | Defined By | ||
|---|---|---|---|
LogSetupLevel(value:int)
Creates a new setup level instance. | LogSetupLevel | ||
Applies the passed-in target to the passed-in logger for all levels
matching to this LogSetupLevel. | LogSetupLevel | ||
getLevelByValue(value:int):LogSetupLevel [static]
Returns a LogSetupLevel for the value. | LogSetupLevel | ||
Combines this level with another one, allowing to output to either of both
levels. | LogSetupLevel | ||
valueOf():int
Value of this level. | LogSetupLevel | ||
| Constant | Defined By | ||
|---|---|---|---|
| ALL : LogSetupLevel [static] Level that will log all statements. | LogSetupLevel | ||
| DEBUG : LogSetupLevel [static] Level that will log all statements. | LogSetupLevel | ||
| DEBUG_ONLY : LogSetupLevel [static] Level that will log just the debug statements. | LogSetupLevel | ||
| ERROR : LogSetupLevel [static] Level that will log the error or fatal statements. | LogSetupLevel | ||
| ERROR_ONLY : LogSetupLevel [static] Level that will log just the error statements. | LogSetupLevel | ||
| FATAL : LogSetupLevel [static] Level that will log just the fatal statements. | LogSetupLevel | ||
| FATAL_ONLY : LogSetupLevel [static] Level that will log just the fatal statements. | LogSetupLevel | ||
| INFO : LogSetupLevel [static] Level that will log the error, fatal, warn or info statements. | LogSetupLevel | ||
| INFO_ONLY : LogSetupLevel [static] Level that will log just the info statements. | LogSetupLevel | ||
| NONE : LogSetupLevel [static] Level that will not log any level. | LogSetupLevel | ||
| WARN : LogSetupLevel [static] Level that will log the error, fatal or warn statements. | LogSetupLevel | ||
| WARN_ONLY : LogSetupLevel [static] Level that will log just the warn statements. | LogSetupLevel | ||
| LogSetupLevel | () | Constructor |
public function LogSetupLevel(value:int)Creates a new setup level instance.
Parametersvalue:int — Value of the log level.
|
Error — if the level for that value was already created before.
|
| applyTo | () | method |
public function applyTo(logger:Logger, target:ILogTarget):void
Applies the passed-in target to the passed-in logger for all levels
matching to this LogSetupLevel.
Parameters
logger:Logger — Logger instance to receive the targets
| |
target:ILogTarget — ILogTarget that should be used for the defined targets
|
| getLevelByValue | () | method |
public static function getLevelByValue(value:int):LogSetupLevel
Returns a LogSetupLevel for the value.
Parameters
value:int — Value of the requested LogSetupLevel.
|
LogSetupLevel — LogSetupLevel matching to the value.
|
| or | () | method |
public function or(otherLevel:LogSetupLevel):LogSetupLevelCombines this level with another one, allowing to output to either of both levels.
Parameters
otherLevel:LogSetupLevel — LogSetupLevel that should be used.
|
LogSetupLevel — Resulting level that allows either of the levels.
|
| valueOf | () | method |
public function valueOf():intValue of this level.
Returnsint — level of this logger
|
| ALL | Constant |
public static const ALL:LogSetupLevelLevel that will log all statements.
| DEBUG | Constant |
public static const DEBUG:LogSetupLevelLevel that will log all statements.
| DEBUG_ONLY | Constant |
public static const DEBUG_ONLY:LogSetupLevelLevel that will log just the debug statements.
| ERROR | Constant |
public static const ERROR:LogSetupLevelLevel that will log the error or fatal statements.
| ERROR_ONLY | Constant |
public static const ERROR_ONLY:LogSetupLevelLevel that will log just the error statements.
| FATAL | Constant |
public static const FATAL:LogSetupLevelLevel that will log just the fatal statements.
| FATAL_ONLY | Constant |
public static const FATAL_ONLY:LogSetupLevelLevel that will log just the fatal statements.
| INFO | Constant |
public static const INFO:LogSetupLevelLevel that will log the error, fatal, warn or info statements.
| INFO_ONLY | Constant |
public static const INFO_ONLY:LogSetupLevelLevel that will log just the info statements.
| NONE | Constant |
public static const NONE:LogSetupLevelLevel that will not log any level.
| WARN | Constant |
public static const WARN:LogSetupLevelLevel that will log the error, fatal or warn statements.
| WARN_ONLY | Constant |
public static const WARN_ONLY:LogSetupLevelLevel that will log just the warn statements.