FludgeLogger
| Kind of class: | class |
|---|---|
| Inherits from: | AbstractLogger < BasicClass |
| Implements: | |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.env.log.logger.FludgeLogger |
| File last modified: | Friday, 01 July 2005, 19:57:40 |
FludgeLogger delegates all log messages to the appropriate methods onthe
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.
Summary
- setLevel
- getLevel
- isDebugEnabled
- isInfoEnabled
- isWarningEnabled
- isErrorEnabled
- isFatalEnabled
- debug
- info
- warning
- error
- fatal
Constructor
FludgeLogger
FludgeLogger instance.The default log level is ALL. This means all messages regardless of
their level are logged.
Instance methods
debug
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.
error
message object at error level.The message is only logged when the level is set to ERROR or
a level above.
fatal
message object at fatal level.The message is only logged when the level is set to FATAL or
a level above.
The equivalent level for fatal in fludge is exception.
info
message object at info level.The message is only logged when the level is set to INFO or
a level above.
isDebugEnabled
true if debug messages are loggedisErrorEnabled
true if error messages are loggedisFatalEnabled
true if fatal messages are loggedisInfoEnabled
true if info messages are loggedisWarningEnabled
true if warning messages are loggedsetLevel
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.
warning
message object at warning level.The message is only logged when the level is set to WARNING
or a level above.