| Package | ch.capi.utils.logging |
| Class | public class LogLevel |
| Inheritance | LogLevel Object |
| Method | Defined 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 | ||
| Constant | Defined 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 | ||
| 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.
|
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.
|
int — The level corresponding to the name.
|
| ALL | Constant |
public static const ALL:int = -1All the log will be traced.
| CONFIG | Constant |
public static const CONFIG:int = 150The CONFIG level is for configuration tracing.
| FINE | Constant |
public static const FINE:int = 100The FINE level is for medium-low logging.
| FINER | Constant |
public static const FINER:int = 50The FINER level is for medium-heavy logging.
| FINEST | Constant |
public static const FINEST:int = 10The FINEST level is for huge logging.
| INFO | Constant |
public static const INFO:int = 200The INFO level is for low logging.
| NONE | Constant |
public static const NONE:int = 99999There will be no logging at all.
| SEVERE | Constant |
public static const SEVERE:int = 1000The SEVERE level is to inform that something went wrong and that the program shouldn't handle that fault.
| WARNING | Constant |
public static const WARNING:int = 500The WARNING level is to inform that some unsafe / unexpected actions have been performed.