org.as2lib.core.BasicClass +--org.as2lib.env.log.logger.LuminicBoxLogger
Logger
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.
public function getName(Void):String
Returns the name of this logger.
the name of this logger
public function setLevel(newLevel:Level):Void
Sets the new level.
The level determines which messages are logged and which are not.
newLevel | the new level |
public function getLevel(Void):Level
Returns the set or default level.
the set or default level
public function addPublisher(publisher:IPublisher):Void
Adds the publisher
to the wrapped LuminicBox Logger
.
publisher | the publisher to add |
public function removePublisher(publisher:IPublisher):Void
Removes the publisher
from the wrapped LuminicBox Logger
.
publisher | the publisher to remove |
public function getPublishers(Void):Array
Returns the added publishers of type IPublisher
.
the added publishers
public function isDebugEnabled(Void):Boolean
Checks if this logger is enabled for debug level log messages.
true
if debug messages are logged
public function isInfoEnabled(Void):Boolean
Checks if this logger is enabled for info level log messages.
true
if info messages are logged
public function isWarningEnabled(Void):Boolean
Checks if this logger is enabled for warning level log messages.
true
if warning messages are logged
public function isErrorEnabled(Void):Boolean
Checks if this logger is enabled for error level log messages.
true
if error messages are logged
public function isFatalEnabled(Void):Boolean
Checks if this logger is enabled for fatal level log messages.
true
if fatal messages are logged
public function debug(message):Void
Logs the passed-in message
to LuminicBox Logger
at debug level.
message | the message object to log |
public function info(message):Void
Logs the passed-in message
to LuminicBox Logger
at info level.
message | the message object to log |
public function warning(message):Void
Logs the passed-in message
to LuminicBox Logger
at warning
level.
message | the message object to log |
public function error(message):Void
Logs the passed-in message
to LuminicBox Logger
at error level.
message | the message object to log |