Packagech.capi.utils.logging
Classpublic class LogLevel
InheritanceLogLevel Inheritance Object

Defines the most-used logging levels.



Public Methods
 MethodDefined By
  
getAsString(level:int):String
[static] Returns the specified level as String.
LogLevel
  
getLevelFromString(level:String):int
[static] Returns the specified String as level.
LogLevel
Public Constants
 ConstantDefined By
  ALL : int = -1
[static] All the log will be traced.
LogLevel
  CONFIG : int = 150
[static] The CONFIG level is for configuration tracing.
LogLevel
  FINE : int = 100
[static] The FINE level is for medium-low logging.
LogLevel
  FINER : int = 50
[static] The FINER level is for medium-heavy logging.
LogLevel
  FINEST : int = 10
[static] The FINEST level is for huge logging.
LogLevel
  INFO : int = 200
[static] The INFO level is for low logging.
LogLevel
  NONE : int = 99999
[static] There will be no logging at all.
LogLevel
  SEVERE : int = 1000
[static] The SEVERE level is to inform that something went wrong and that the program shouldn't handle that fault.
LogLevel
  WARNING : int = 500
[static] The WARNING level is to inform that some unsafe / unexpected actions have been performed.
LogLevel
Method Detail
getAsString()method
public static function getAsString(level:int):String

Returns the specified level as String. If the level doesn't correspond to a known level, null is returned.

Parameters

level:int — The level.

Returns
String — A String representing the level or null.
getLevelFromString()method 
public static function getLevelFromString(level:String):int

Returns the specified String as level. The String must be issued from the constants. If the level is not found, then ALL will be returned.

Parameters

level:String — The level name.

Returns
int — The level corresponding to the name.
Constant Detail
ALLConstant
public static const ALL:int = -1

All the log will be traced.

CONFIGConstant 
public static const CONFIG:int = 150

The CONFIG level is for configuration tracing.

FINEConstant 
public static const FINE:int = 100

The FINE level is for medium-low logging.

FINERConstant 
public static const FINER:int = 50

The FINER level is for medium-heavy logging.

FINESTConstant 
public static const FINEST:int = 10

The FINEST level is for huge logging.

INFOConstant 
public static const INFO:int = 200

The INFO level is for low logging.

NONEConstant 
public static const NONE:int = 99999

There will be no logging at all.

SEVEREConstant 
public static const SEVERE:int = 1000

The SEVERE level is to inform that something went wrong and that the program shouldn't handle that fault.

WARNINGConstant 
public static const WARNING:int = 500

The WARNING level is to inform that some unsafe / unexpected actions have been performed.