Description
You can now specify a nondefault name and location for the log file when you use the Database Trace tool in PowerBuilder or InfoMaker to trace database connections through ODBC or a native Powersoft database interface.
By default, PowerBuilder or InfoMaker writes Database Trace output to a log file named PBTRACE.LOG located in your Windows directory, System Folder:Preferences folder (on Macintosh), or $HOME directory (on UNIX). You can override this default by editing your PowerBuilder or InfoMaker initialization file to specify the name and location of the log file you want Database Trace to use.
Purpose
Specifying a nondefault name and location for the Database Trace log file lets you control where PowerBuilder or InfoMaker writes the output of the Database Trace tool. You can give the log file a name and location that best meets the development needs at your site.
Usage
You can specify a nondefault Database Trace log file by editing your PowerBuilder or InfoMaker initialization file. The name and location of the initialization file depends on your product and platform:
|
Product
|
Windows
|
Macintosh
|
UNIX
|
|
PowerBuilder
|
PB.INI in product directory
|
System Folder:Preferences: Powersoft 6.0 Preferences: PowerBuilder Preferences
|
$HOME/.pb.ini
|
|
InfoMaker
|
IM.INI in product directory
|
System Folder:Preferences: Powersoft 6.0 Preferences: InfoMaker Preferences
|
—
|
- To specify a nondefault Database Trace log file:
- Open the PowerBuilder or InfoMaker initialization file for editing.
You can use the File Editor (in PowerBuilder or InfoMaker) or any text editor (outside PowerBuilder or InfoMaker).
- Create an entry named DBTraceFile in the [Database] section of the initialization file, using the following syntax to specify a nondefault log file:
[Database]
... DBTraceFile=log_file_pathname
For example:
[Database]
... DBTraceFile=c:\temp\mydbtrce.log
- Save your changes to the initialization file.
The next time you use the Database Trace tool to trace a connection, PowerBuilder or InfoMaker writes the output to the log file you specified instead of to the default PBTRACE.LOG file.
|