Specifying a nondefault Database Trace log

You can specify a nondefault name and location for the log file when you use Database Trace. This lets you:

StepsTo specify a nondefault Database Trace log file:

  1. Open the PocketBuilder initialization file for editing.

    You can use the File Editor (in PocketBuilder) or any text editor (outside PocketBuilder).

  2. Create an entry named DBTraceFile in the [Database] section of the initialization file, using the following syntax to specify a nondefault log file:

    DBTraceFile=log_file_pathname
    

    For example:

    [Database]
    
    ...
    
    DBTraceFile=c:\logs\mydbtrce.log
    
  3. Save your changes to the initialization file.

    The next time you use the Database Trace tool to trace a connection in the development environment, PocketBuilder writes the output to the log file you specified instead of to the default PKTRACE.LOG file.