Class org.as2lib.env.log.logger.LuminicBoxLogger

org.as2lib.core.BasicClass
   +--org.as2lib.env.log.logger.LuminicBoxLogger

Implemented Interfaces

Logger

Description

LuminicBoxLogger acts as a wrapper for a Logger instance of the LuminicBox Logging API.

Configure the LuminicBox Logging API as normally and just use this class in your application to log messages or objects. This enables you to switch between almost every available Logging API without having to change the logs in your application but just the underlying configuration on startup.

All functionalities that the LuminicBox Logging API offers are delegated to it. Other functionalities are performed by this class directly.

Method Index

new LuminicBoxLogger()

addPublisher(), debug(), error(), fatal(), getLevel(), getName(), getPublishers(), info(), isDebugEnabled(), isErrorEnabled(), isFatalEnabled(), isInfoEnabled(), isWarningEnabled(), removePublisher(), setLevel(), warning()

Inherited from BasicClass

toString()

Constructor Detail

LuminicBoxLogger

public function LuminicBoxLogger(name:String)

Constructs a new LuminicBoxLogger instance.

Parameters

name(optional) the name of this logger

Method Detail

getName

public function getName(Void):String

Returns the name of this logger.

Return

the name of this logger

setLevel

public function setLevel(newLevel:Level):Void

Sets the new level.

The level determines which messages are logged and which are not.

Parameters

newLevelthe new level

getLevel

public function getLevel(Void):Level

Returns the set or default level.

Return

the set or default level

addPublisher

public function addPublisher(publisher:IPublisher):Void

Adds the publisher to the wrapped LuminicBox Logger.

Parameters

publisherthe publisher to add

removePublisher

public function removePublisher(publisher:IPublisher):Void

Removes the publisher from the wrapped LuminicBox Logger.

Parameters

publisherthe publisher to remove

getPublishers

public function getPublishers(Void):Array

Returns the added publishers of type IPublisher.

Return

the added publishers

isDebugEnabled

public function isDebugEnabled(Void):Boolean

Checks if this logger is enabled for debug level log messages.

Return

true if debug messages are logged

Specified By

isDebugEnabled() in org.as2lib.env.log.Logger

isInfoEnabled

public function isInfoEnabled(Void):Boolean

Checks if this logger is enabled for info level log messages.

Return

true if info messages are logged

Specified By

isInfoEnabled() in org.as2lib.env.log.Logger

isWarningEnabled

public function isWarningEnabled(Void):Boolean

Checks if this logger is enabled for warning level log messages.

Return

true if warning messages are logged

Specified By

isWarningEnabled() in org.as2lib.env.log.Logger

isErrorEnabled

public function isErrorEnabled(Void):Boolean

Checks if this logger is enabled for error level log messages.

Return

true if error messages are logged

Specified By

isErrorEnabled() in org.as2lib.env.log.Logger

isFatalEnabled

public function isFatalEnabled(Void):Boolean

Checks if this logger is enabled for fatal level log messages.

Return

true if fatal messages are logged

Specified By

isFatalEnabled() in org.as2lib.env.log.Logger

debug

public function debug(message):Void

Logs the passed-in message to LuminicBox Logger at debug level.

Parameters

messagethe message object to log

Specified By

debug() in org.as2lib.env.log.Logger

info

public function info(message):Void

Logs the passed-in message to LuminicBox Logger at info level.

Parameters

messagethe message object to log

Specified By

info() in org.as2lib.env.log.Logger

warning

public function warning(message):Void

Logs the passed-in message to LuminicBox Logger at warning level.

Parameters

messagethe message object to log

Specified By

warning() in org.as2lib.env.log.Logger

error

public function error(message):Void

Logs the passed-in message to LuminicBox Logger at error level.

Parameters

messagethe message object to log

Specified By

error() in org.as2lib.env.log.Logger

fatal

public function fatal(message):Void

Logs the passed-in message to LuminicBox Logger at fatal level.

Parameters

messagethe message object to log

Specified By

fatal() in org.as2lib.env.log.Logger