套件 | mx.logging.targets |
類別 | public class TraceTarget |
繼承 | TraceTarget LineFormattedTarget AbstractTarget Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
trace()
method to output log messages.
To view trace()
method output, you must be running the
debugger version of Flash Player or AIR Debug Launcher.
The debugger version of Flash Player and AIR Debug Launcher send output from the trace()
method
to the flashlog.txt file. The default location of this file is the same directory as
the mm.cfg file. You can customize the location of this file by using the TraceOutputFileName
property in the mm.cfg file. You must also set TraceOutputFileEnable
to 1 in your mm.cfg file.
更多範例
公用方法
方法 | 定義自 | ||
---|---|---|---|
Constructor. | TraceTarget | ||
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 |
建構函式詳細資料
TraceTarget | () | 建構函式 |
public function TraceTarget()
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
Constructs an instance of a logger target that will send
the log data to the global trace()
method.
All output will be directed to flashlog.txt by default.
Tue Jun 12 2018, 03:47 PM Z