Interface org.as2lib.env.log.LogLevel

org.as2lib.core.BasicInterface
   +--org.as2lib.env.log.LogLevel

Description

LogLevel is the basic interface for all levels.

It is used by loggers to write log messages at different levels and to define at which levels messages shall be written.

The default levels offered by the As2lib Logging API in a descending order are ALL, DEBUG, INFO, WARNING, ERROR, FATAL and NONE. All these levels are defined as constants in the AbstractLogLevel class. Use this class to reference them.

It is also possible to create your own log levels. You just must implement this interface or just instantiate one using the DynamicLogLevel class.

Method Index

isGreaterOrEqual(), toNumber()

Inherited from BasicInterface

toString()

Method Detail

isGreaterOrEqual

public function isGreaterOrEqual(level:LogLevel):Boolean

Determines whether this level is greater or equal than the passed-in level.

This is normally done using the number representation of this level and comparing it using the greater or equal operator with the number representation of the passed-in level.

Parameters

levelthe level to compare this level with

Return

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

toNumber

public function toNumber(Void):Number

Returns the number representation of this level.

Is used to compare levels with each other.

Return

the number representation of this level