Packagesystem.logging
Classpublic class LoggerTarget
InheritanceLoggerTarget Inheritance Object
Implements Receiver
Subclasses LineFormattedTarget

This class provides the basic functionality required by the logging framework for a logger target implementation. It handles the validation of filter expressions and provides a default level property.



Public Properties
 PropertyDefined By
  factory : LoggerFactory
Determinates the LoggerFactory reference of the target, by default the target use the system.logging.Log singleton.
LoggerTarget
  filters : Array
Indicates the filters array representation of this target.
LoggerTarget
  level : LoggerLevel
Indicates the level of this target.
LoggerTarget
Public Methods
 MethodDefined By
  
Creates a new LoggerTarget instance.
LoggerTarget
  
addFilter(channel:String):Boolean
Insert a channel in the fllters if this channel don't exist.
LoggerTarget
  
addLogger(logger:Logger):void
Sets up this target with the specified logger.
LoggerTarget
  
logEntry(entry:LoggerEntry):void
This method receive a LoggerEntry from an associated logger.
LoggerTarget
  
receive(... values):void
This method is called when the receiver is connected with a Signal object.
LoggerTarget
  
removeFilter(channel:String):Boolean
Remove a channel in the fllters if this channel exist.
LoggerTarget
  
removeLogger(logger:Logger):void
Stops this target from receiving events from the specified logger.
LoggerTarget
Property Detail
factoryproperty
factory:LoggerFactory

Determinates the LoggerFactory reference of the target, by default the target use the system.logging.Log singleton.


Implementation
    public function get factory():LoggerFactory
    public function set factory(value:LoggerFactory):void
filtersproperty 
filters:Array

Indicates the filters array representation of this target.


Implementation
    public function get filters():Array
    public function set filters(value:Array):void
levelproperty 
level:LoggerLevel

Indicates the level of this target.


Implementation
    public function get level():LoggerLevel
    public function set level(value:LoggerLevel):void
Constructor Detail
LoggerTarget()Constructor
public function LoggerTarget()

Creates a new LoggerTarget instance.

Method Detail
addFilter()method
public function addFilter(channel:String):Boolean

Insert a channel in the fllters if this channel don't exist. Returns a boolean if the channel is add in the list.

Parameters

channel:String

Returns
Boolean
addLogger()method 
public function addLogger(logger:Logger):void

Sets up this target with the specified logger. Note : this method is called by the framework and should not be called by the developer.

Parameters

logger:Logger

logEntry()method 
public function logEntry(entry:LoggerEntry):void

This method receive a LoggerEntry from an associated logger. A target uses this method to translate the event into the appropriate format for transmission, storage, or display. This method will be called only if the event's level is in range of the target's level. Descendants need to override this method to make it useful.

Parameters

entry:LoggerEntry

receive()method 
public function receive(... values):void

This method is called when the receiver is connected with a Signal object.

Parameters

... values — All the values emitting by the signals connected with this object.

removeFilter()method 
public function removeFilter(channel:String):Boolean

Remove a channel in the fllters if this channel exist.

Parameters

channel:String

Returns
Boolean — a boolean if the channel is removed.
removeLogger()method 
public function removeLogger(logger:Logger):void

Stops this target from receiving events from the specified logger.

Parameters

logger:Logger