KB Article #66813

How to change the default location for log.dat?

Problem

-- How could we change the default location where log.dat file is generated


Resolution

* In order to change the default location for log.dat, the following settings can be changed:



1. In conffile.ini (Gateway/run_time/etc) there are 2 parameters that establish the location where log.dat file is generted



conffile.ini
[LOG]

arc_context_file    = "%p_runtime_data%\data\arcctx.dat"
log_file            = "%p_runtime_data%\data\log.dat"
[...]



2. In the profile.sh (or profile.bat file) from (/run_time/etc) you'll find this one, too :

set p_logfile=%p_database%\log.dat

The parameters in the conffile are used by Gateway to find the location to where it should write the log.
The parameters in profile.sh are used by the GUI (Gateway Navigator) to know from where it should read the log.