Packagecom.lightstreamer.as_client.logger
Classpublic class TraceAppender
InheritanceTraceAppender Inheritance Object
Implements LoggerListener

The TraceAppender is a simple LoggerListener implementation that writes log lines received from the loggers to which it was added through the "trace" method supplied by Flash.

See also

com.lightstreamer.as_client.logger.Logger
http://livedocs.adobe.com/flex/3/langref/package.html#trace()


Public Methods
 MethodDefined By
  
TraceAppender(level:uint)
Constructor for TraceAppender.
TraceAppender
  
getLevel():uint
Return the actual threshold level of the listener instance.
TraceAppender
  
log(loggerName:String, level:String, mex:String):void
Receive log messages from the Logger instances to which it was added and from their sons.
TraceAppender
  
logAbsoluteTime(absolute:Boolean):void
Select whether to log lines with the absolute time, that is the time obtained from the time parameter of a Date instance, or with the number of milliseconds from the start of the flash application.
TraceAppender
  
setLevel(level:uint):void
Change the threshold level for the listener.
TraceAppender
Constructor Detail
TraceAppender()Constructor
public function TraceAppender(level:uint)

Constructor for TraceAppender.

Parameters
level:uint — the threshold level at which the TraceAppender is created. It should be one of DEBUG INFO WARN ERROR.

See also

Method Detail
getLevel()method
public function getLevel():uint

Return the actual threshold level of the listener instance. This method is used by the Logger engine to determine whether or not to send a message to the listener.

Returns
uint — the level of the listener instance. It should be one of DEBUG INFO WARN ERROR.
log()method 
public function log(loggerName:String, level:String, mex:String):void

Receive log messages from the Logger instances to which it was added and from their sons.

Parameters

loggerName:String — the name of the Logger instance that has published the message.
 
level:String — the string version of the level of the message.
 
mex:String — the message.

logAbsoluteTime()method 
public function logAbsoluteTime(absolute:Boolean):void

Select whether to log lines with the absolute time, that is the time obtained from the time parameter of a Date instance, or with the number of milliseconds from the start of the flash application.

Parameters

absolute:Boolean — true or false to use or not the absolute time.

See also

setLevel()method 
public function setLevel(level:uint):void

Change the threshold level for the listener.

Parameters

level:uint — the new threshold level. It should be one of DEBUG INFO WARN ERROR.

See also