Compiler logging

Flex provides you with control over the output of warning and debug messages for the application and component compilers. When you compile, you can enable the message output to help you to locate and fix problems in your application.

For the command-line compiler, the settings that you use to control messages are defined in the flex-config.xml file or as command-line compiler options.

You have a high level of control over what compiler messages are displayed. For example, you can enable or disable messages, such as deprecation and binding-related warnings in the flex-config.xml file, by using the show-deprecation-warnings and show-binding-warnings options. The following example disables these messages in the flex-config.xml file:

<show-deprecation-warnings>false</show-deprecation-warnings>
<show-binding-warnings>false</show-binding-warnings>

You can also set these options on the command line.

For Flex Builder, you set error and warning options in the Compiler Properties dialog box. You also can enter more specific options, such as show-deprecation-warnings and show-binding-warnings in the Additional Compiler Arguments field. If you enable compiler messages, they are written to the console window (or System.out) by default. To open the Compiler Properties dialog box, select Project > Properties > Flex Compiler.

Also in Flex Builder is a separate Eclipse Error Log file. This file stores messages from the Eclipse environment. The default location of this log file in Windows is c:\Documents and Settings/user_name/workspace/.metadata/.log. For Mac OS, the default location is also in the workspace directory, but files and directories that begin with a dot are hidden by default.

For more information on the compiler logging settings, see Viewing warnings and errors.

The web-tier compiler has an additional logging mechanism that you configure in a different configuration file. For more information, see Web-tier logging.


LiveCycle Data Services ES 2.5

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/logging_7.html