IBM DB2 Everyplace Sync Server Administration Guide Version 7 Release 2 Modification 1


Managing the error log and the trace files

Purging error log entries automatically

You can specify how many days the entries in the error log in the Mobile Devices Administration Center should be kept. The log entries that are older than the specified days are automatically purged. This feature helps to keep the size of the error log small.

To specify the days that the entries should be kept:

  1. Use a text editor to open the DSYGdflt.properties file in directory \SyncServer\Server\classes\com\ibm\mobileservices\.
  2. Modify the Log.KeepDays line in the file. The default value is 7 days. If you set the value to 0, automatic purging will not happen and all entries are kept.

    For example, if you want all log entries older than three days to be purged automatically, change the line to look like this:

    Log.KeepDays=3
    

Defining tracing level

By default, the Sync Server only logs error messages in the trace files. However, for diagnostic purposes, you may want to turn on tracing to include more detailed information. Use DSYTrace to turn on or off tracing.

To turn on tracing

  1. Open a command prompt.
  2. Change to the \SyncServer\Server\ directory.
  3. At the command prompt, type:
    DSYTrace 1 -console
    

All trace messages are now logged to a .trace file.

To turn off tracing

  1. Open a command prompt.
  2. Change to the \SyncServer\Server\ directory.
  3. At the command prompt, type:
    DSYTrace 0 -console
    

Tracing is now turned off. Only error messages are now logged to a .trace file.

The DSYTrace command changes the Trace.Level in file DSYGdflt.properties in directory \SyncServer\Server\classes\com\ibm\mobileservices\. For additional tracing options, type DSYTrace with no options at the command line or open the DSYGdflt.properties file in a text editor and modify the Trace.var parameters where var is a specific parameter variable.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]