Logger
RichInternetLogger delegates all log messages to the appropriate methods
of the de.richinternet.utils.Dumper class of Dirk Eisman's Flex Trace
Panel.
Using this class instead of the Dumper 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.
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
isDebugEnabled() in org.as2lib.env.log.Logger
public function isInfoEnabled(Void):BooleanChecks if this logger is enabled for info level log messages.
true if info messages are logged
isInfoEnabled() in org.as2lib.env.log.Logger
public function isWarningEnabled(Void):BooleanChecks if this logger is enabled for warning level log messages.
true if warning messages are logged
isWarningEnabled() in org.as2lib.env.log.Logger
public function isErrorEnabled(Void):BooleanChecks if this logger is enabled for error level log messages.
true if error messages are logged
isErrorEnabled() in org.as2lib.env.log.Logger
public function isFatalEnabled(Void):BooleanChecks if this logger is enabled for fatal level log messages.
true if fatal messages are logged
isFatalEnabled() in org.as2lib.env.log.Logger
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.
The message is logged using the Dumper.trace method.
message | the message object to log |
debug() in org.as2lib.env.log.Logger
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.
The message is logged using the Dumper.info method.
message | the message object to log |
info() in org.as2lib.env.log.Logger
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.
The message is logged using the Dumper.warn method.
message | the message object to log |
warning() in org.as2lib.env.log.Logger
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.
The message is logged using the Dumper.error method.
message | the message object to log |
error() in org.as2lib.env.log.Logger
public function fatal(message):Void
Logs the passed-in message object at fatal level.
The message is only logged when the level is set to FATAL or
a level above.
The message is logged using the Dumper.error method.
message | the message object to log |
fatal() in org.as2lib.env.log.Logger