套件 | mx.logging.targets |
類別 | public class LineFormattedTarget |
繼承 | LineFormattedTarget AbstractTarget Object |
子類別 | TraceTarget |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
fieldSeparator : String = " "
The separator string to use between fields (the default is " ")
| LineFormattedTarget | ||
filters : Array
In addition to the level setting, filters are used to
provide a psuedo-hierarchical mapping for processing only those events
for a given category. | AbstractTarget | ||
id : String [唯讀]
Provides access to the id of this target. | AbstractTarget | ||
includeCategory : Boolean
Indicates if the category 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 | ||
includeTime : Boolean
Indicates if the time should be added to the trace. | LineFormattedTarget | ||
level : int
Provides access to the level this target is currently set at. | AbstractTarget |
方法 | 定義自 | ||
---|---|---|---|
Constructor. | LineFormattedTarget | ||
Sets up this target with the specified logger. | AbstractTarget | ||
指出物件是否有已定義的指定屬性。 | Object | ||
Called after the implementing object has been created
and all properties specified on the tag have been assigned. | AbstractTarget | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
[覆寫]
This method handles a LogEvent from an associated logger. | LineFormattedTarget | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
Stops this target from receiving events from the specified logger. | AbstractTarget | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
fieldSeparator | 屬性 |
public var fieldSeparator:String = " "
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The separator string to use between fields (the default is " ")
includeCategory | 屬性 |
public var includeCategory:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Indicates if the category for this target should added to the trace.
includeDate | 屬性 |
public var includeDate:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Indicates if the date should be added to the trace.
includeLevel | 屬性 |
public var includeLevel:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Indicates if the level for the event should added to the trace.
includeTime | 屬性 |
public var includeTime:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Indicates if the time should be added to the trace.
LineFormattedTarget | () | 建構函式 |
public function LineFormattedTarget()
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
Constructs an instance of a logger target that will format the message data on a single line.
logEvent | () | 方法 |
override public function logEvent(event:LogEvent):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
This method handles a LogEvent
from an associated logger.
A target uses this method to translate the event into the appropriate
format for transmission, storage, or display.
This method is called only if the event's level is in range of the
target's level.
參數
event:LogEvent — The LogEvent handled by this method.
|
Tue Jun 12 2018, 03:47 PM Z