AudiofarmLogger
| Kind of class: | class |
|---|---|
| Inherits from: | BasicClass |
| Implements: | |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.env.log.logger.AudiofarmLogger |
| File last modified: | Saturday, 02 July 2005, 22:47:42 |
AudiofarmLogger acts as a wrapper for a logging.Logger instanceof the Logging Framework for ActionScript 2 (as2logger) from Ralf Siegel.
Configure the as2logger API as normally and just use this class in your
application to log messages. 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.
Summary
- getName
- getParent
- getPublishers
- addPublisher
- removePublisher
- getFilter
- setFilter
- getLevel
- setLevel
- isDebugEnabled
- isInfoEnabled
- isWarningEnabled
- isErrorEnabled
- isFatalEnabled
- debug
- info
- warning
- error
- fatal
Constructor
AudiofarmLogger
AudiofarmLogger instance.Gets an as2logger Logger instance via the
logging.Logger.getLogger method.
Class properties
ALL
as2logger
ALL level.DEBUG
level is equivalent to the as2logger
CONFIG level.ERROR
level is equivalent to the as2logger
SEVERE level.FATAL
level is equivalent to the as2logger
SEVERE level.INFO
level is equivalent to the as2logger
INFO level.NONE
level is equivalent to the as2logger
OFF level.WARNING
level is equivalent to the as2logger
WARNING level.Instance methods
addPublisher
true if the publisher was added successfully elsefalsedebug
Logger at debug level.The debug level is equivalent to the fine level of as2logger.
error
Logger at error level.The error level is equivalent to the severe level of as2logger.
fatal
Logger at fatal level.The fatal level is equivalent to the severe level of as2logger.
getFilter
undefinedgetLevel
which means that this logger's effective level will be inherited from its
parent.
getName
getParent
This method returns the nearest extant parent in the namespace. Thus if a
logger is called "a.b.c.d", and a logger called "a.b" has been created but no
logger "a.b.c" exists, then a call of getParent on the logger "a.b.c.d"
will return the logger "a.b".
The parent for the anonymous logger is always the root (global) logger.
The result will be undefined if it is called on the root (global) logger
in the namespace.
getPublishers
info
Logger at info level.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 loggedremovePublisher
publisher from this logger.true if the publisher was removed successfully elsefalsesetFilter
setLevel
this logger.
Message levels lower than this value will be discarded. The level
value OFF can be used to turn off logging.
If the new level is undefined, it means that this node should inherit
its level from its nearest ancestor with a specific (non-undefined) level value.
warning
Logger at warning level.