About logging

When you encounter a problem with your application, whether during compilation or at run time, the first step is to gather diagnostic information to locate the cause of the problem. The source of a problem typically is in one of two places: the server web application, or the client application.

Flex includes several different logging and error reporting mechanisms that you can use to track down failures:

Client-side logging and debugging With the debugger version of Adobe Flash Player, you can use the global trace() method to write out messages or configure a TraceTarget to customize log levels of applications for data services-based applications. For more information, see Client-side logging and debugging.

Compiler logging  When compiling your Flex applications from the command line and in Flex Builder, you can view deprecation and warning messages, and sources of fatal errors. For more information, see Compiler logging.

Web-tier logging The Flex web application provides some control over logging messages for the FlexMxmlServlet and lets you write the web-tier compiler log messages to your application server's logs. For more information, see Web-tier logging.

Server-side data services logging You can perform server-side logging for data service messages. You configure server-side logging in the logging section of the LiveCycle Data Services services-config.xml file. By default, output is sent to System.out, but you can also configure the logging to use your application server's logging mechanism. For more information, see Server-side service logging.

The following example shows the types of logging you can do in the appropriate environment:


Types of logging

To use client-side debugging utilities such as the trace() global method and client-side data services logging, you must install and configure the debugger version of Flash Player. This is described in Using the debugger version of Flash Player. The debugger version of Flash Player is not required to log compiler messages, server-side data services messages, or web-tier compiler messages.


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_2.html