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 theLuminicBox 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.
Summary
Constructor
Instance methods
- getName
- setLevel
- getLevel
- addPublisher
- removePublisher
- getPublishers
- isDebugEnabled
- isInfoEnabled
- isWarningEnabled
- isErrorEnabled
- isFatalEnabled
- debug
- info
- warning
- error
- fatal
Instance methods inherited from BasicClass
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:
Specified by:
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:
Specified by:
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:
Specified by:
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:
Specified by:
isDebugEnabled
function isDebugEnabled (
Void) : Boolean
Checks if this logger is enabled for debug level log messages.
Returns:
true if debug messages are loggedSee also:
Specified by:
isErrorEnabled
function isErrorEnabled (
Void) : Boolean
Checks if this logger is enabled for error level log messages.
Returns:
true if error messages are loggedSee also:
Specified by:
isFatalEnabled
function isFatalEnabled (
Void) : Boolean
Checks if this logger is enabled for fatal level log messages.
Returns:
true if fatal messages are loggedSee also:
Specified by:
isInfoEnabled
function isInfoEnabled (
Void) : Boolean
Checks if this logger is enabled for info level log messages.
Returns:
true if info messages are loggedSee also:
Specified by:
isWarningEnabled
function isWarningEnabled (
Void) : Boolean
Checks if this logger is enabled for warning level log messages.
Returns:
true if warning messages are loggedSee also:
Specified by:
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
level.
message to LuminicBox Logger at warninglevel.
Parameters:
message:
the message object to log
See also:
Specified by: