![]() | ![]() |
Definition at line 19 of file Logger.as.
Public Member Functions | |
| function | getParent () |
| function | getName () |
| function | finest (message:String) |
| function | finer (message:String) |
| function | fine (message:String) |
| function | info (message:String) |
| function | warning (message:String) |
| function | severe (message:String) |
| function | log (level:Level, message:String) |
| function | setLevel (level:Level) |
| function | getLevel () |
| function | setFilter (filter:IFilter) |
| function | getFilter () |
| function | addPublisher (publisher:IPublisher) |
| function | removePublisher (publisher:IPublisher) |
| function | getPublishers () |
| function | isLoggable (level:Level) |
Static Public Member Functions | |
| static function | getLogger (name:String) |
| static function | getLoggerFor (aObject:Object) |
| static function | logFinest (message:String, aContextObject:Object) |
| static function | logFiner (message:String, aContextObject:Object) |
| static function | logFine (message:String, aContextObject:Object) |
| static function | logInfo (message:String, aContextObject:Object) |
| static function | logWarning (message:String, aContextObject:Object) |
| static function | logSevere (message:String, aContextObject:Object) |
| static function | logMessage (level:Level, message:String, aContextObject:Object) |
Private Member Functions | |
| function | Logger (name:String) |
| function | getEffectiveLevel () |
| function | getActivePublishers () |
| function | isPublishable (logRecord:LogRecord) |
Static Private Member Functions | |
| static function | getLoggerMap () |
Private Attributes | |
| var | name:String |
| var | level:Level |
| var | filter:IFilter |
| var | publishers:ArrayList |
Static Private Attributes | |
| static var | OBJECT_DEFAULT_LOGGER_VAR_NAME: String = "___default_logger" |
| static var | loggerMap:Object |
| function gugga.logging.Logger.Logger | ( | name:String | ) | [private] |
| static function gugga.logging.Logger.getLogger | ( | name:String | ) | [static] |
Find or create a logger for a named subsystem. If a logger has already been created with the given name it is returned. Otherwise a new logger is created. If a new logger is created its log level will be configured based on the LogManager configuration and it will configured to also send logging output to its parent's publishers.
| name | A name for the logger, or nothing for anonymous loggers. A name should be a dot-separated name and should normally be based on the package name or class name of the subsystem, such as mx.core or mx.controls |
| static function gugga.logging.Logger.getLoggerFor | ( | aObject:Object | ) | [static] |
| static function gugga.logging.Logger.logFinest | ( | message:String | , | |
| aContextObject:Object | ||||
| ) | [static] |
| static function gugga.logging.Logger.logFiner | ( | message:String | , | |
| aContextObject:Object | ||||
| ) | [static] |
| static function gugga.logging.Logger.logFine | ( | message:String | , | |
| aContextObject:Object | ||||
| ) | [static] |
| static function gugga.logging.Logger.logInfo | ( | message:String | , | |
| aContextObject:Object | ||||
| ) | [static] |
| static function gugga.logging.Logger.logWarning | ( | message:String | , | |
| aContextObject:Object | ||||
| ) | [static] |
| static function gugga.logging.Logger.logSevere | ( | message:String | , | |
| aContextObject:Object | ||||
| ) | [static] |
| static function gugga.logging.Logger.logMessage | ( | level:Level | , | |
| message:String | , | |||
| aContextObject:Object | ||||
| ) | [static] |
| static function gugga.logging.Logger.getLoggerMap | ( | ) | [static, private] |
| function gugga.logging.Logger.getParent | ( | ) |
Return the parent for this Logger.
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.
| function gugga.logging.Logger.getName | ( | ) |
| function gugga.logging.Logger.finest | ( | message:String | ) |
Log a FINEST message. If the logger is currently enabled for the FINEST message level then the given message is forwarded to all the registered publishers.
| message | A string message |
| function gugga.logging.Logger.finer | ( | message:String | ) |
Log a FINER message. If the logger is currently enabled for the FINER message level then the given message is forwarded to all the registered publishers.
| message | A string message |
| function gugga.logging.Logger.fine | ( | message:String | ) |
Log a FINE message. If the logger is currently enabled for the FINE message level then the given message is forwarded to all the registered publishers.
| message | A string message |
| function gugga.logging.Logger.info | ( | message:String | ) |
Log a INFO message. If the logger is currently enabled for the INFO message level then the given message is forwarded to all the registered publishers.
| message | A string message |
| function gugga.logging.Logger.warning | ( | message:String | ) |
Log a WARNING message. If the logger is currently enabled for the WARNING message level then the given message is forwarded to all the registered publishers.
| message | A string message |
| function gugga.logging.Logger.severe | ( | message:String | ) |
Log a SEVERE message. If the logger is currently enabled for the SEVERE message level then the given message is forwarded to all the registered publishers.
| message | A string message |
| function gugga.logging.Logger.log | ( | level:Level | , | |
| message:String | ||||
| ) |
Log a message. If the logger is currently enabled for the given message level then the given message is forwarded to all the registered publishers.
| level | The level object | |
| message | The string message |
| function gugga.logging.Logger.setLevel | ( | level:Level | ) |
Set the log level specifying which message levels will be logged by this logger. Message levels lower than this value will be discarded. The level value Level.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.
| The | new level or undefined. |
| function gugga.logging.Logger.getLevel | ( | ) |
| function gugga.logging.Logger.getEffectiveLevel | ( | ) | [private] |
| function gugga.logging.Logger.setFilter | ( | filter:IFilter | ) |
| function gugga.logging.Logger.getFilter | ( | ) |
| function gugga.logging.Logger.addPublisher | ( | publisher:IPublisher | ) |
| function gugga.logging.Logger.removePublisher | ( | publisher:IPublisher | ) |
| function gugga.logging.Logger.getPublishers | ( | ) |
Gets a list with Publishers currently associated with this logger.
| function gugga.logging.Logger.getActivePublishers | ( | ) | [private] |
Gets a list with Publishers including the parent's loggers publishers.
| function gugga.logging.Logger.isLoggable | ( | level:Level | ) |
Check if a message of the given level would actually be logged by this logger. This check is based on the Loggers effective level, which may be inherited from its parent.
| level | The level to be checked |
| function gugga.logging.Logger.isPublishable | ( | logRecord:LogRecord | ) | [private] |
Check if a log record would actually be published by this logger, after it had passed the cheap level check through isLoggable This private convenience method basically checks if the log record would pass the filter.
| the | LogRecord to be checked |
var gugga.logging.Logger.OBJECT_DEFAULT_LOGGER_VAR_NAME [static, private] |
var gugga.logging.Logger.loggerMap [static, private] |
var gugga.logging.Logger.name [private] |
var gugga.logging.Logger.level [private] |
var gugga.logging.Logger.filter [private] |
var gugga.logging.Logger.publishers [private] |
1.5.2