| Package | system.logging |
| Class | public class LoggerTarget |
| Inheritance | LoggerTarget Object |
| Implements | Receiver |
| Subclasses | LineFormattedTarget |
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new LoggerTarget instance. | LoggerTarget | ||
addFilter(channel:String):Boolean
Insert a channel in the fllters if this channel don't exist. | LoggerTarget | ||
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 | ||
| factory | property |
factory:LoggerFactory
Determinates the LoggerFactory reference of the target, by default the target use the system.logging.Log singleton.
public function get factory():LoggerFactory public function set factory(value:LoggerFactory):void| filters | property |
filters:ArrayIndicates the filters array representation of this target.
public function get filters():Array public function set filters(value:Array):void| level | property |
level:LoggerLevelIndicates the level of this target.
public function get level():LoggerLevel public function set level(value:LoggerLevel):void| LoggerTarget | () | Constructor |
public function LoggerTarget()Creates a new LoggerTarget instance.
| addFilter | () | method |
public function addFilter(channel:String):BooleanInsert 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 |
Boolean |
| addLogger | () | method |
public function addLogger(logger:Logger):voidSets 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):voidThis 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):BooleanRemove a channel in the fllters if this channel exist.
Parameters
channel:String |
Boolean — a boolean if the channel is removed.
|
| removeLogger | () | method |
public function removeLogger(logger:Logger):voidStops this target from receiving events from the specified logger.
Parameters
logger:Logger |