| Package | system.logging.targets |
| Class | public class LineFormattedTarget |
| Inheritance | LineFormattedTarget LoggerTarget Object |
| Subclasses | ExternalTarget, SocketTarget, TextFieldTarget, TraceTarget |
| 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 | |
| includeChannel : Boolean
Indicates if the channel for this target should added to the trace. | LineFormattedTarget | ||
| includeDate : Boolean
Indicates if the date should be added to the trace. | LineFormattedTarget | ||
| includeLevel : Boolean
Indicates if the level for the event should added to the trace. | LineFormattedTarget | ||
| includeLines : Boolean
Indicates if the line for the event should added to the trace. | LineFormattedTarget | ||
| includeMilliseconds : Boolean
Indicates if the milliseconds should be added to the trace. | LineFormattedTarget | ||
| includeTime : Boolean
Indicates if the time should be added to the trace. | LineFormattedTarget | ||
![]() | level : LoggerLevel
Indicates the level of this target. | LoggerTarget | |
| separator : String =
The separator string. | LineFormattedTarget | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new LineFormattedTarget instance. | LineFormattedTarget | ||
![]() | 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 | |
internalLog(message:*, level:LoggerLevel):void
Descendants of this class should override this method to direct the specified message to the desired output. | LineFormattedTarget | ||
logEntry(entry:LoggerEntry):void [override]
This method receive a LoggerEntry from an associated logger. | LineFormattedTarget | ||
![]() | 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 | |
resetLineNumber():void
Resets the internal line number value (set to 1). | LineFormattedTarget | ||
| includeChannel | property |
public var includeChannel:BooleanIndicates if the channel for this target should added to the trace.
| includeDate | property |
public var includeDate:BooleanIndicates if the date should be added to the trace.
| includeLevel | property |
public var includeLevel:BooleanIndicates if the level for the event should added to the trace.
| includeLines | property |
public var includeLines:BooleanIndicates if the line for the event should added to the trace.
| includeMilliseconds | property |
public var includeMilliseconds:Boolean
Indicates if the milliseconds should be added to the trace. Only relevant when includeTime is true.
| includeTime | property |
public var includeTime:BooleanIndicates if the time should be added to the trace.
| separator | property |
public var separator:String = The separator string.
| LineFormattedTarget | () | Constructor |
public function LineFormattedTarget()Creates a new LineFormattedTarget instance.
| formatDate | () | method |
hack function formatDate(d:Date):StringThis method format the passed Date in arguments.
Parameters
d:Date |
String |
| formatLevel | () | method |
hack function formatLevel(level:String):StringThis method format the passed level in arguments.
Parameters
level:String |
String |
| formatLines | () | method |
hack function formatLines():StringThis method format the current line value.
ReturnsString |
| formatMessage | () | method |
hack function formatMessage(message:*, level:String, channel:String, date:Date):StringThis method format the log message.
Parameters
message:* | |
level:String | |
channel:String | |
date:Date |
String |
| formatTime | () | method |
hack function formatTime(d:Date):StringThis method format the current Date passed in argument.
Parameters
d:Date |
String |
| getDigit | () | method |
hack function getDigit(n:Number):StringReturns the string representation of a number and use digit conversion.
Parameters
n:Number |
String — the string representation of a number and use digit conversion.
|
| internalLog | () | method |
public function internalLog(message:*, level:LoggerLevel):voidDescendants of this class should override this method to direct the specified message to the desired output.
Parameters
message:* — String containing preprocessed log message which may include time, date, channel, etc.
based on property settings, such as includeDate, includeChannel, etc.
| |
level:LoggerLevel |
| logEntry | () | method |
override 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 |
| resetLineNumber | () | method |
public function resetLineNumber():voidResets the internal line number value (set to 1).