Access keys

LuminicBoxLogger

Kind of class: class
Inherits from: BasicClass
Implements:
Author: Simon Wacker, Christoph Atteneder
Classpath: org.as2lib.env.log.logger.LuminicBoxLogger
File last modified: Sunday, 09 October 2005, 19:28:26
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.

Constructor

LuminicBoxLogger

function LuminicBoxLogger (
name:String)
Constructs a new LuminicBoxLogger instance.
Parameters:
name:
(optional) the name of this logger

Instance methods

addPublisher

function addPublisher (
publisher:IPublisher) : Void
Adds the publisher to the wrapped LuminicBox Logger.
Parameters:
publisher:
the publisher to add

debug

function debug (
message) : Void
Logs the passed-in message to LuminicBox Logger at debug level.
Parameters:
message:
the message object to log
See also:

error

function error (
message) : Void
Logs the passed-in message to LuminicBox Logger at error level.
Parameters:
message:
the message object to log
See also:

fatal

function fatal (
message) : Void
Logs the passed-in message to LuminicBox Logger at fatal level.
Parameters:
message:
the message object to log
See also:

getLevel

function getLevel (
Void) : Level
Returns the set or default level.
Returns:
the set or default level

getName

function getName (
Void) : String
Returns the name of this logger.
Returns:
the name of this logger

getPublishers

function getPublishers (
Void) : Object
Returns the added publishers of type IPublisher.
Returns:
the added publishers
See also:

info

function info (
message) : Void
Logs the passed-in message to LuminicBox Logger at info level.
Parameters:
message:
the message object to log
See also:

isDebugEnabled

function isDebugEnabled (
Void) : Boolean
Checks if this logger is enabled for debug level log messages.
Returns:
true if debug messages are logged
See also:

isErrorEnabled

function isErrorEnabled (
Void) : Boolean
Checks if this logger is enabled for error level log messages.
Returns:
true if error messages are logged
See also:

isFatalEnabled

function isFatalEnabled (
Void) : Boolean
Checks if this logger is enabled for fatal level log messages.
Returns:
true if fatal messages are logged
See also:

isInfoEnabled

function isInfoEnabled (
Void) : Boolean
Checks if this logger is enabled for info level log messages.
Returns:
true if info messages are logged
See also:

isWarningEnabled

function isWarningEnabled (
Void) : Boolean
Checks if this logger is enabled for warning level log messages.
Returns:
true if warning messages are logged
See also:

removePublisher

function removePublisher (
publisher:IPublisher) : Void
Removes the publisher from the wrapped LuminicBox Logger.
Parameters:
publisher:
the publisher to remove

setLevel

function setLevel (
newLevel:Level) : Void
Sets the new level.

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

Parameters:
newLevel:
the new level

warning

function warning (
message) : Void
Logs the passed-in message to LuminicBox Logger at warning
level.
Parameters:
message:
the message object to log