Flex log management and flex log management
There are two debugging methods in Flex:
First, use the trace () function for debugging in the flex builder;
Second, use the logTarget class and the following code:
// Create a target.
Var logTarget: TraceTarget = new TraceTarget ();
// Log only messages for the classes in the mx. rpc. * and
// Mx. messaging packages.
LogTarget. filters = ["mx. rpc. *", "mx. messaging. *"];
// Log on fatal levels.
LogTarget. level = LogEventLevel. FATAL;
// Add date, time, category, and log level to the output.
LogTarget. includeDate = true;
LogTarget. includeTime = true;
LogTarget. includeCategory = true;
LogTarget. includeLevel = true;
// Begin logging.
Log. addTarget (logTarget );
After TraceTarget is enabled, two files are automatically created,
Mm. cfg configuration file, under the c: \ users \ username directory;
The flashlog.txt log file is in c: \ users \ username \ AppData \ Roaming \ Macromedia \ Flash Player \ Logs;