Flex log management and flex log management

Source: Internet
Author: User

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;




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.