(Flex Data Visualization components only)
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
The OLAPTrace class controls the generation of trace information
generated by the OLAP classes and written to the log file.
This class uses the
trace()
method internally to write out the log information.
You must set TraceOutputFileEnable=1
in mm.cfg, and use the
Debug Flash Player or AIR Debug Launcher to generate trace output.
trace()
public static var traceLevel:int = 1
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
The current trace level, which determines the amount of trace information
written to the log file, TRACE_LEVEL_1
writes the least amount of
information to the log file, and TRACE_LEVEL_3
writes the most.
All trace information output by a call to the traceMsg()
method
with a level
argument less than traceLevel
is sent to the log file.
The default value is TRACE_LEVEL_1.
public static var traceOn:Boolean = true
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Set to true
to enable trace output.
The default value is true.
public static function traceMsg(msg:String, level:int = 1):void
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Writes trace information to the log file
You must set TraceOutputFileEnable=1
in mm.cfg, and use the
Debug Flash Player or AIR Debug Launcher to generate
trace output by calling this method.
Parameters
| msg:String — The trace message.
|
|
| level:int (default = 1 ) — The trace level of the message.
Only trace messages with a level argument less than traceLevel
are sent to the log file.
|
public static const TRACE_LEVEL_1:int = 1
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Specifies to write minimal trace information to the log file.
public static const TRACE_LEVEL_2:int = 2
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Specifies to write more trace information to the log file than TRACE_LEVEL_1
.
public static const TRACE_LEVEL_3:int = 3
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Specifies to write the most trace information to the log file.
© 2009 Adobe Systems Incorporated. All rights reserved.
Sat Oct 3 2009, 04:15 AM -07:00