new LoggerLevel(value, name)
The logger levels that is used within the logging framework.
The logger levels that is used within the logging framework.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value of the enumeration. |
name |
string | The name key of the enumeration. |
Example
var LoggerLevel = system.logging.LoggerLevel ; for( var level in LoggerLevel ) { if( LoggerLevel.hasOwnProperty(level) ) { trace( level + ' ' + LoggerLevel.getLevelString(LoggerLevel[level]) ) ; } }
Extends
Members
-
<static> ALL :system.logging.LoggerLevel
-
Intended to force a target to process all messages (1).
Type:
-
<static> CRITICAL :system.logging.LoggerLevel
-
Designates events that are very harmful and will eventually lead to application failure (16).
Type:
-
<static> DEBUG :system.logging.LoggerLevel
-
Designates informational level messages that are fine grained and most helpful when debugging an application (2).
Type:
-
<static> DEFAULT_LEVEL_STRING :string
-
The default string level value in the
getLevelString()
method ('UNKNOW').Type:
- string
-
<static> ERROR :system.logging.LoggerLevel
-
Designates error events that might still allow the application to continue running (8).
Type:
-
<static> INFO :system.logging.LoggerLevel
-
Designates informational messages that highlight the progress of the application at coarse-grained level (4).
Type:
-
<static> NONE :system.logging.LoggerLevel
-
A special level that can be used to turn off logging (0).
Type:
-
<static> WARNING :system.logging.LoggerLevel
-
Designates events that could be harmful to the application operation (6).
Type:
-
<static> WTF :system.logging.LoggerLevel
-
What a Terrible Failure: designates an exception that should never happen. (32).
Type:
Methods
-
<static> get(value)
-
Search a
LoggerLevel
reference if the number level passed in argument is valid.Parameters:
Name Type Description value
number The numeric value corresponding to a valid LoggerLevel object.
Returns:
The LoggerLevel reference.
-
<static> getLevelString()
-
Returns a String value representing the specific level.
Returns:
a String value representing the specific level.
-
<static> validate()
-
Validates a passed-in level passed in argument.
Returns:
true
if the level passed in argument is valid.