Getlogname

This function returns the file name of the last Sage X3 engine log. When the log mode is activated, a file located in the 'TMP' subfolder of the folder defined by the "ADXDIR" environment variable is opened and filled with log information.

In some cases, the Customer Support team may refer to the file contents in order to provide a diagnosis.

Syntax

LOG_FILE=getlogname()
It uses the following parameters:

Example

# logs the instructions in the SUBROUTINE labelLocal Integer ILocal char MYLOG(200)I=openlog(2)Gosub SUBROUTINEI=closelog()# After this instruction, MYLOG contains the name of the file createdMYLOG=getlogname()

See also

Closelog, Openlog