org.as2lib.core.BasicClass
+--org.as2lib.env.log.logger.AbstractLogger
+--org.as2lib.env.log.logger.FludgeLoggerLogger
FludgeLogger delegates all log messages to the appropriate methods on
the Fludge class.
Using this class instead of the Fludge class in your application
directly enables you to switch between almost every available Logging API without
having to change the logging calls, but just the underlying configuration on
startup.
new FludgeLogger()
public function setLevel(level:LogLevel):VoidSets the log level.
The log level determines which messages are logged and which are not.
A level of value null or undefined os interpreted as level
ALL which is also the default level.
level | the new log level |
public function isDebugEnabled(Void):BooleanChecks if this logger is enabled for debug level log messages.
true if debug messages are logged
public function isInfoEnabled(Void):BooleanChecks if this logger is enabled for info level log messages.
true if info messages are logged
public function isWarningEnabled(Void):BooleanChecks if this logger is enabled for warning level log messages.
true if warning messages are logged
public function isErrorEnabled(Void):BooleanChecks if this logger is enabled for error level log messages.
true if error messages are logged
public function isFatalEnabled(Void):BooleanChecks 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 at debug level.
The message is only logged when the level is set to DEBUG or
a level above.
Because fludge does not support the debug level the default level info is used.
message | the message object to log |
public function info(message):Void
Logs the passed-in message object at info level.
The message is only logged when the level is set to INFO or
a level above.
message | the message object to log |
public function warning(message):Void
Logs the passed-in message object at warning level.
The message is only logged when the level is set to WARNING
or a level above.
message | the message object to log |
public function error(message):Void
Logs the passed-in message object at error level.
The message is only logged when the level is set to ERROR or
a level above.
message | the message object to log |