PC*MILER|Rail-Connect includes a logging feature to help users find problems more easily. The log file that is generated documents API usage, including errors.  The path and other options related to the log file can be set in the PCRSRV.INI file, usually located in C:\Windows (or its equivalent on your PC). 


When you first open the .INI file, you will see that the file contains only one line (the default DLL path). To turn logging on, you will need to add lines as in the example below (but with your own preferences set).


[Default]

DLLPath=C:\ALK Technologies\PCRWINXX\  

(XX is the version number)


[Logging]

Enable=1

Append=0

Detail=0

File=C:\pcrsrv.log


Logging Settings are:


KEY
Valid Values
Description
Enable
0 or 1

Should log files be generated (1) or not (0). Default = 0

Append
0 or 1

Append to old file (1) or overwrite (0).

Default = 0

Detail  
0 or 1

Log all APIs (1) or exclude selected APIs (0). Default = 0

(See below for which APIs are excluded if set to 0.)

File

Path/file name of log file. Any path and filename may be specified.


When Detail=1, the log file will usually be very long. APIs not included when Detail=0 are the following:


PCRSGetRptLine()

PCRSGetARRptLine()

PCRSGetAutoRouteMiles()

PCRSGetAutoRouteLine()

PCRSGetRouteLegInfo()

PCRSGetARLegInfo()

PCRSGetGeoMatch()

PCRSGetRouteLegInfo()

PCRSGetNumARLegs()

Num2Name()