Packagesystem.logging
Classpublic class LoggerLevel
InheritanceLoggerLevel Inheritance Enum Inheritance Object
Implements Equatable

Static class containing constants for use in the level property.



Public Properties
 PropertyDefined By
  DEFAULT_LEVEL_STRING : String = UNKNOWN
[static] The default string level value in the getLevelString() method.
LoggerLevel
Public Methods
 MethodDefined By
  
LoggerLevel(value:int, name:String)
Creates a new LoggerLevel instance.
LoggerLevel
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
LoggerLevel
  
[static] Returns true if the number level passed in argument is valid.
LoggerLevel
  
[static] Returns a String value representing the level specified.
LoggerLevel
  
isValidLevel(level:LoggerLevel):Boolean
[static] Returns true if the number level passed in argument is valid.
LoggerLevel
 Inherited
toSource(indent:int = 0):String
Returns the source code String representation of the object.
Enum
 Inherited
toString():String
Returns the String representation of the object.
Enum
 Inherited
valueOf():int
Returns the primitive value of the object.
Enum
Public Constants
 ConstantDefined By
  ALL : LoggerLevel
[static] Intended to force a target to process all messages (1).
LoggerLevel
  DEBUG : LoggerLevel
[static] Designates informational level messages that are fine grained and most helpful when debugging an application (2).
LoggerLevel
  ERROR : LoggerLevel
[static] Designates error events that might still allow the application to continue running (8).
LoggerLevel
  FATAL : LoggerLevel
[static] Designates events that are very harmful and will eventually lead to application failure (16).
LoggerLevel
  INFO : LoggerLevel
[static] Designates informational messages that highlight the progress of the application at coarse-grained level (4).
LoggerLevel
  NONE : LoggerLevel
[static] A special level that can be used to turn off logging (0).
LoggerLevel
  WARN : LoggerLevel
[static] Designates events that could be harmful to the application operation (6).
LoggerLevel
  WTF : LoggerLevel
[static] What a Terrible Failure: designates an exception that should never happen.
LoggerLevel
Property Detail
DEFAULT_LEVEL_STRINGproperty
public static var DEFAULT_LEVEL_STRING:String = UNKNOWN

The default string level value in the getLevelString() method.

Constructor Detail
LoggerLevel()Constructor
public function LoggerLevel(value:int, name:String)

Creates a new LoggerLevel instance.

Parameters
value:int — The value of the enumeration.
 
name:String — The name key of the enumeration.
Method Detail
equals()method
public function equals(o:*):Boolean

Compares the specified object with this object for equality.

Parameters

o:*

Returns
Booleantrue if the the specified object is equal with this object.
getLevel()method 
public static function getLevel(value:int):LoggerLevel

Returns true if the number level passed in argument is valid.

Parameters

value:int

Returns
LoggerLeveltrue if the number level passed in argument is valid.
getLevelString()method 
public static function getLevelString(value:LoggerLevel):String

Returns a String value representing the level specified.

Parameters

value:LoggerLevel

Returns
String — a String value representing the level specified.
isValidLevel()method 
public static function isValidLevel(level:LoggerLevel):Boolean

Returns true if the number level passed in argument is valid.

Parameters

level:LoggerLevel

Returns
Booleantrue if the number level passed in argument is valid.
Constant Detail
ALLConstant
public static const ALL:LoggerLevel

Intended to force a target to process all messages (1).

DEBUGConstant 
public static const DEBUG:LoggerLevel

Designates informational level messages that are fine grained and most helpful when debugging an application (2).

ERRORConstant 
public static const ERROR:LoggerLevel

Designates error events that might still allow the application to continue running (8).

FATALConstant 
public static const FATAL:LoggerLevel

Designates events that are very harmful and will eventually lead to application failure (16).

INFOConstant 
public static const INFO:LoggerLevel

Designates informational messages that highlight the progress of the application at coarse-grained level (4).

NONEConstant 
public static const NONE:LoggerLevel

A special level that can be used to turn off logging (0).

WARNConstant 
public static const WARN:LoggerLevel

Designates events that could be harmful to the application operation (6).

WTFConstant 
public static const WTF:LoggerLevel

What a Terrible Failure: designates an exception that should never happen. (32).