Specifications
235ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
The levels of logging messages are defined as constants of the LogEventLevel class. The following table lists the
log level constants and their numeric equivalents, and describes each message level:
The log level lets you restrict the amount of messages sent to any running targets. Whatever log level you specify,
all “lower” levels of messages are written to the log. For example, if you set the log level to
DEBUG, all log levels are
included. If you set the log level to
WARNING, only WARNING, ERROR, and FATAL messages are logged. If you set the
log level to the lowest level of message,
FATAL, only FATAL messages are logged.
Using the logging API with data services
The data services classes are designed to use the logging API to log client-side and server-side messages.
Enable the logging API with data services
1 Create a TraceTarget logging target and set the value of one or more filter properties to include the classes
whose messages you want to log. You can filter the log messages to a specific class or package. You can use
wildcards (*) when defining a filter.
2 Set the log level by using the level property of the log target. You can also add detail to the log file output,
such as the date and time that the event occurred, by using properties of the log target.
Logging level
constant (int)
Description
ALL (0)
Designates that messages of all logging levels should be logged.
DEBUG (2)
Logs internal Flex activities. This is most useful when debugging an application.
Select the DEBUG logging level to include DEBUG, INFO, WARN, ERROR, and FATAL messages in your log files.
INFO (4)
Logs general information.
Select the INFO logging level to include INFO, WARN, ERROR, and FATAL messages in your log files.
WARN (6)
Logs a message when the application encounters a problem. These problems do not cause the application to
stop running, but could lead to further errors.
Select the WARN logging level to include WARN, ERROR, and FATAL messages in your log files.
ERROR (8)
Logs a message when a critical service is not available or a situation has occurred that restricts the use of the
application.
Select the ERROR logging level to include ERROR and FATAL messages in your log files.
FATAL (1000)
Logs a message when an event occurs that results in the failure of the application.
Select the FATAL logging level to include only FATAL messages in your log files.










