Setting Mobile Development Logging Preferences

This topic describes how to modify Mobile Development preferences. Before creating mobile applications, you can set preferences to determine log message levels and editor settings for creating and editing templates and mobile applications.

To set Mobile Development logging preferences:

  1. Select Window|Preferences from the main menu bar.

    The Preferences dialog box appears.

  2. Expand Sybase, Inc|Mobile Development in the left pane and select Logging.

    The Logging dialog allows you to filter not only log levels but classes and packages. You can set a logging level to "error." If errors appear, you can then change the logging level to debug. When an error occurs, you can get the debug information from the log file.

    Logging

    FieldDescription
    Log Levels

    The various levels of logging are:

    • Debug – a detailed tracing message with diagnostic messages.

    • Info – a message level for informational messages.

    • Warn – a potential problem.

    • Error – an unexpected error. This may be fatal to the operation, but it cannot be determined since it is unexpected.

    • Fatal – a serious failure.

    Clear All Root Log Receivers

    Some plug-ins add appenders to the root logger, which sends Unwired Accelerator messages to not only the plug-in, but also the appender. This doubles the number of messages that are logged. Click this check box to clear out the log Receivers.

    Console

    Select Enable Console Logging to log messages in the Eclipse Console view.

    Eclipse

    Select Enable Eclipse Logging to receive messages in the Eclipse Error Log view.

    Mobile Development View Log

    The Mobile Development View Log section allows you to define the following logging preferences:

    • Enable View Logging – enable sending of log messages to the Mobile Development Log view.

    • Log Level – select the logging level from the drop-down list.

    • View Text field buffer size – buffer size (in characters) of the text field.

    • Displayed tab width – establish the tab width within the log.

    • Filters – use the Exclude and Include buttons to define various Java packages to either include or exclude from logging.

    • Message Color – define a different color to represent each message log level by clicking the message type, then selecting the color from the palette.

    File

    The File section allows you to direct logging information to a file by defining the following preferences:

    • Enable File Logging – direct logging to a file.

    • Log Level – select the logging level from the drop-down list.

    • Log File – enter a name of the file (or select Browse) to identify the log file.

    • Rollover Frequency – select the frequency that a new log file is generated from the drop-down list. When the rollover frequency time is reached, the current file is appended with a timestamp.

    • Clear Log File on Startup – select this option to clear the log file whenever you restart Sybase WorkSpace.

  3. Click Apply.

  4. Click OK.

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com