| Package | com.lightstreamer.as_client.logger |
| Class | public class Logger |
See also
| Property | Defined by | ||
|---|---|---|---|
| DEBUG : uint = 0 [static]
DEBUG logging level
| Logger | ||
| ERROR : uint = 15 [static]
ERROR logging level
| Logger | ||
| INFO : uint = 5 [static]
INFO logging level
| Logger | ||
| WARN : uint = 10 [static]
WARN logging level
| Logger | ||
| Method | Defined by | ||
|---|---|---|---|
|
Logger(name:String)
Constructor for Logger.
| Logger | ||
|
addLoggerListener(listener:LoggerListener):void
Add a listener to the Logger instance.
| Logger | ||
|
debug(mex:*):void
Publish a log message on the Logger object at DEBUG level.
| Logger | ||
|
error(mex:*):void
Publish a log message on the Logger object at ERROR level.
| Logger | ||
|
[static]
Logger factory that gets a logger related to a specified name.
| Logger | ||
|
info(mex:*):void
Publish a log message on the Logger object at INFO level.
| Logger | ||
|
log(level:uint, mex:*):void
Publish a log message on the Logger object.
| Logger | ||
|
removeLoggerListener(listener:LoggerListener):Boolean
Remove a listener from the Logger instance.
| Logger | ||
|
warn(mex:*):void
Publish a log message on the Logger object at WARN level.
| Logger | ||
| DEBUG | property |
public static var DEBUG:uint = 0DEBUG logging level
| ERROR | property |
public static var ERROR:uint = 15ERROR logging level
| INFO | property |
public static var INFO:uint = 5INFO logging level
| WARN | property |
public static var WARN:uint = 10WARN logging level
| Logger | () | constructor |
public function Logger(name:String)Constructor for Logger. This constructor should not be used, the static method getLogger should be used instead.
Parametersname:String — The name of the desired logger.
|
See also
| addLoggerListener | () | method |
public function addLoggerListener(listener:LoggerListener):voidAdd a listener to the Logger instance. Such listener will receive all the log lines from this logger and its sons. The listener also defines a threshold level, so that it will receive only the log lines with a level equal to or greater than the threshold.
Parameterslistener:LoggerListener — An instance of an object implementing the LoggerListener interface.
|
See also
| debug | () | method |
public function debug(mex:*):voidPublish a log message on the Logger object at DEBUG level.
Parametersmex:* — The message to be logged. It could be a String instance, an Error instance or any other
object, provided that it has a toString method.
|
See also
| error | () | method |
public function error(mex:*):voidPublish a log message on the Logger object at ERROR level.
Parametersmex:* — The message to be logged. It could be a String instance, an Error instance or any other
object, provided that it has a toString method.
|
See also
| getLogger | () | method |
public static function getLogger(loggerName:String):LoggerLogger factory that gets a logger related to a specified name. If such logger does not exist it is created. A unique instance is always maintained for each logger name.
ParametersloggerName:String — The name of the desired logger.
|
Logger —
The desired Logger instance.
|
| info | () | method |
public function info(mex:*):voidPublish a log message on the Logger object at INFO level.
Parametersmex:* — The message to be logged. It could be a String instance, an Error instance or any other
object, provided that it has a toString method.
|
See also
| log | () | method |
public function log(level:uint, mex:*):voidPublish a log message on the Logger object.
Parameterslevel:uint — The logging level of the given message. It should be one of DEBUG INFO WARN ERROR
constants values. Specialized method are available as shortcuts to avoid to specify a logging level
|
|
mex:* — The message to be logged. It could be a String instance, an Error instance or any other
object, provided that it has a toString method.
|
See also
| removeLoggerListener | () | method |
public function removeLoggerListener(listener:LoggerListener):BooleanRemove a listener from the Logger instance.
Parameterslistener:LoggerListener — An instance of an object implementing the LoggerListener interface
that was previously added to this same Logger.
|
Boolean — true if the given listener is correctly found and so removed, false otherwise.
|
See also
| warn | () | method |
public function warn(mex:*):voidPublish a log message on the Logger object at WARN level.
Parametersmex:* — The message to be logged. It could be a String instance, an Error instance or any other
object, provided that it has a toString method.
|
See also