AbstractLogLevel
| Kind of class: | class |
|---|---|
| Inherits from: | BasicClass |
| Implements: | |
| Known subclasses: | |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.env.log.level.AbstractLogLevel |
| File last modified: | Monday, 03 October 2005, 12:30:02 |
Summary
Class properties
DEBUG
(read,write)
All log messages that are at a higher log level than debug get logged.
ERROR
(read,write)
All log messages that are at a higher log level than error get logged.
FATAL
(read,write)
All log messages that are at a higher log level than fatal get logged.
INFO
(read,write)
All log messages that are at a higher log level than info get logged.
NONE
(read,write)
No log messages get logged.
WARNING
(read,write)
All log messages that are at a higher log level than warning get logged.
Class methods
forName
static function forName (
name:String) : LogLevel
Returns the log level for the given
name.If the given name is not registered to any logger, INFO is
returned.
Parameters:
name:
the name of the log level to return
Returns:
the log level for the given
nameInstance methods
isGreaterOrEqual
function isGreaterOrEqual (
level:LogLevel) : Boolean
Compares the number representation of this level with the one of the passed-in
level using the is greater or equal operator.true will be returned if:
- This level is greater or equal than the passed-in
level. - The passed-in
levelisnullorundefined.
Parameters:
level:
the level to compare this level with
Returns:
true if this level is greater or equal than the passed-inlevel else falseSpecified by:
toNumber
function toNumber (
Void) : Number
Returns the number representation of this level.
The return value is never null or undefined.
Returns:
the number representation of this level
Specified by:
toString
function toString (
) : String
Returns the string representation of this level.
Returns:
the string representation of this level
Overrides:
Specified by: