Class org.as2lib.env.log.level.AbstractLogLevel

org.as2lib.core.BasicClass
   +--org.as2lib.env.log.level.AbstractLogLevel

Implemented Interfaces

LogLevel

Description

AbstractLogLevel acts as a basic access point for the pre-defined levels ALL, DEBUG, INFO, WARNING, ERROR, FATAL and NONE.

Field Index

ALL, DEBUG, ERROR, FATAL, INFO, NONE, WARNING

Method Index

isGreaterOrEqual(), toNumber(), toString()

Field Detail

ALL

static public ALL:LogLevel
All log messages get logged.

DEBUG

static public DEBUG:LogLevel
All log messages that are at a higher log level than debug get logged.

INFO

static public INFO:LogLevel
All log messages that are at a higher log level than info get logged.

WARNING

static public WARNING:LogLevel
All log messages that are at a higher log level than warning get logged.

ERROR

static public ERROR:LogLevel
All log messages that are at a higher log level than error get logged.

FATAL

static public FATAL:LogLevel
All log messages that are at a higher log level than fatal get logged.

NONE

static public NONE:LogLevel
No log messages get logged.

Method Detail

isGreaterOrEqual

public function isGreaterOrEqual(level:LogLevel):Boolean

Compares the number representation of this level with the one of the passed-in level using the is greater or equal operator.

true will be returned if:

  • This level is greater or equal than the passed-in level.
  • The passed-in level is null or undefined.

Parameters

levelthe level to compare this level with

Return

true if this level is greater or equal than the passed-in level else false

Specified By

isGreaterOrEqual() in org.as2lib.env.log.LogLevel

toNumber

public function toNumber(Void):Number

Returns the number representation of this level.

The return value is never null or undefined.

Return

the number representation of this level

Specified By

toNumber() in org.as2lib.env.log.LogLevel

toString

public function toString():String

Returns the string representation of this level.

Return

the string representation of this level

Specified By

toString() in org.as2lib.core.BasicInterface

Overrides

toString() in org.as2lib.core.BasicClass