Server-side service logging

You can perform server-side logging for LiveCycle Data Services requests and responses. You configure server-side logging in the logging section of the Flex services configuration file. By default, output is sent to System.out. For information about client-side logging, see Building and Deploying Flex 2 Applications.

You set the logging level to one of the following available levels:

In the filter pattern elements, you can specify the categories of information to log. In the class attribute of the target element, you can specify flex.messaging.log.ConsoleTarget to log messages to the standard output or the flex.messaging.log.ServletLogTarget to log messages to use your application server's default logging mechanism for servlets.

The following example shows a logging configuration that uses the Debug logging level:

<logging>

<!-- You may also use flex.messaging.log.ServletLogTarget. -->
    <target class="flex.messaging.log.ConsoleTarget" level="Debug">
        <properties>
            <prefix>[Flex]</prefix>
            <includeDate>false</includeDate>
            <includeTime>false</includeTime>
            <includeLevel>false</includeLevel>
            <includeCategory>false</includeCategory>
        </properties>
        <filters>
            <pattern>Endpoint</pattern>
            <!--<pattern>Service.*</pattern>-->
            <!--<pattern>Message.*</pattern>-->
        </filters>
    </target>
</logging>

In a production environment, Adobe recommends that you set the logging level to warn so that both warnings and errors are displayed. If there are warnings that occur frequently that you prefer to ignore, change the level to error so that only errors are displayed.

The following table describes the logging levels:

Logging level

Description

ALL

Designates that all messages should be logged.

DEBUG

DEBUG messages indicate internal Flex activities.

Select the DEBUG logging level to include DEBUG, INFO, WARN, and ERROR log messages in your log files.

INFO

INFO messages indicate general information to the developer or administrator.

Select the INFO logging level to include INFO, and ERROR log messages in your log files.

WARN

WARN messages indicate that Flex encountered a problem with the application, but it does not stop running.

Select the WARN logging level to include WARN and ERROR log messages in your log files.

ERROR

ERROR messages indicate when a critical service is not available or a situation has occurred that restricts use of the application.

Select the ERROR logging level to include ERROR log messages in your log files.

NONE

Designates that no messages should be logged.

You can use the following matching patterns as the values of pattern elements:


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