Apache Flex 4.16.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
OLAPTrace

Package | mx.olap
Class | public class OLAPTrace
Inheritance | OLAPTrace Object

Language Version : | ActionScript 3.0

Product Version : | Flex 3

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.

See also

trace()

Public Properties

| Property | Defined By
--- | --- | ---
|  | traceLevel : int = 1 [static] 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. | OLAPTrace
|  | traceOn : Boolean = true [static] Set to true to enable trace output. | OLAPTrace

Public Methods

| Method | Defined By
--- | --- | ---
|  | traceMsg(msg:String, level:int = 1):void [static] 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. | OLAPTrace

Public Constants

| Constant | Defined By
--- | --- | ---
|  | TRACE_LEVEL_1 : int = 1 [static] Specifies to write minimal trace information to the log file. | OLAPTrace
|  | TRACE_LEVEL_2 : int = 2 [static] Specifies to write more trace information to the log file than TRACE_LEVEL_1. | OLAPTrace
|  | TRACE_LEVEL_3 : int = 3 [static] Specifies to write the most trace information to the log file. | OLAPTrace

Property Detail

traceLevel | property

`public static var traceLevel:int = 1`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

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`.

traceOn | property |

`public static var traceOn:Boolean = true`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Set to `true` to enable trace output.

The default value is `true`.

Method Detail

traceMsg | () | method

`public static function traceMsg(msg:String, level:int = 1):void`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

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.

Constant Detail

TRACE_LEVEL_1 | Constant

`public static const TRACE_LEVEL_1:int = 1`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Specifies to write minimal trace information to the log file.

TRACE_LEVEL_2 | Constant |

`public static const TRACE_LEVEL_2:int = 2`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Specifies to write more trace information to the log file than `TRACE_LEVEL_1`.

TRACE_LEVEL_3 | Constant |

`public static const TRACE_LEVEL_3:int = 3`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Specifies to write the most trace information to the log file.

Sun Mar 5 2017, 03:42 PM +11:00