Package | mx.logging.targets |
Class | public class TraceTarget |
Inheritance | TraceTarget LineFormattedTarget AbstractTarget Object |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | 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.
More examples
Learn more
Public Properties
Public Methods
Method | Defined By | ||
---|---|---|---|
Constructor. | TraceTarget | ||
Sets up this target with the specified logger. | AbstractTarget | ||
Indicates whether an object has a specified property defined. | Object | ||
Called after the implementing object has been created
and all properties specified on the tag have been assigned. | AbstractTarget | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
[override]
This method handles a LogEvent from an associated logger. | LineFormattedTarget | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Stops this target from receiving events from the specified logger. | AbstractTarget | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object |
Constructor Detail
TraceTarget | () | Constructor |
public function TraceTarget()
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | 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.
Thu Dec 6 2018, 01:12 PM -08:00