LuminicBox.Log

Level

This abtract class contains definitions for the message's levels.
The predefined levels are: ALL, LOG, DEBUG, INFO, WARN, ERROR, FATAL and NONE.

Property Summary

static LevelALL = newLevel("ALL",1)
static LevelLOG = newLevel("LOG",1)
static LevelDEBUG = newLevel("DEBUG",2)
static LevelINFO = newLevel("INFO",4)
static LevelWARN = newLevel("WARN",8)
static LevelERROR = newLevel("ERROR",16)
static LevelFATAL = newLevel("FATAL",32)
static LevelNONE = newLevel("NONE",1024)

Constructor Summary

Level(name:String, value:Number)

Method Summary

getName()
getValue()
toString()

Property Details

ALL

static ALL:Level = newLevel("ALL",1)

The ALL level designates the lowest level possible.

LOG

static LOG:Level = newLevel("LOG",1)

The LOG level designates fine-grained informational events.

DEBUG

static DEBUG:Level = newLevel("DEBUG",2)

The DEBUG level designates fine-grained debug information.

INFO

static INFO:Level = newLevel("INFO",4)

The INFO level designates informational messages that highlight the progress of the application at coarse-grained level.

WARN

static WARN:Level = newLevel("WARN",8)

The WARN level designates potentially harmful situations.

ERROR

static ERROR:Level = newLevel("ERROR",16)

The ERROR level designates error events that might still allow the application to continue running.

FATAL

static FATAL:Level = newLevel("FATAL",32)

The FATAL level designates very severe error events that will presumably lead the application to abort or stop.

NONE

static NONE:Level = newLevel("NONE",1024)

The NONE level when used with setLevel makes all messages to be ignored.

Constructor Details

Level

private Level(name:String,
              value:Number)

Method Details

getName

getName():String

Returns the level's name.

getValue

getValue():Number

Returns the level's bitwise value.

toString

toString():String

Return the level's name.