Setting Mobile Development Logging Preferences

Use the Preferences dialog to set Mobile Development Logging preferences to set log message levels.

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
    Clear all root log receivers

    Select this option to clear out the root log receivers.

    Some plug-ins add appenders to the root logger, which sends Unwired Accelerator messages to the plug-in and the appender, doubling the number of logged messages.

    Console

    Select Enable Console Logging option to log messages in the Eclipse Console view, then set the log level. Choose from the following:

    • Debug – a detailed tracing message with diagnostic messages.

    • Info (Default) – 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.

    Eclipse

    Select Enable Eclipse logging to receive messages in the Eclipse Error Log view, then set the log level. Choose from the following:

    • Debug – a detailed tracing message with diagnostic messages.

    • Info – a message level for informational messages.

    • Warn (Default) – 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.

    Mobile Development View Log

    Select Enable view logging to send log messages to the Mobile Development Log view. Then do the following:

    • Set the log level:

      • Debug – a detailed tracing message with diagnostic messages.

      • Info (Default) – 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.

    • Enter the View Text field buffer size in characters.

    • Enter the tab width between each column in the log.

    • Select Exclude or Include to define the Java packages to delete or add from logging.

    • Define a message color to represent each type of log level. Click the message type to select a color from the palette, and click OK.

    File

    Select Enable file logging to direct log messages to a file. Then do the following:

    • Set the log level:

      • Debug – a detailed tracing message with diagnostic messages.

      • Info (Default) – 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.

    • Browse for the file you wan to log message to or enter the name of the file.

    • Select the rollover frequency from the drop-down list for generating a new log file. When the rollover frequency time is reached, the current file is appended with a timestamp.

    • Select Clear log file on startup to clear the log file each time you launch Sybase WorkSpace.

  3. Click Apply to save your changes.

  4. Click OK to exit the dialog.

Setting Capabilities Preferences

Setting Mobile Development Preferences

Setting Mobile Development Editor Preferences

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