4.9 Log Files (Windows)

The JSMDirect, JSMProxy and JSMAdmin CGI programs write log information to the files jsmdirect.log, jsmproxy.log and jsmadmin.log respectively.

The default folder for these CGI programs is the JSMCGI folder.

By default, these log files are created in the folder from which JSMDirect, JSMProxy or JSMAdmin programs are started, which is normally the JSMCGI folder.

In order to have the log files created properly, the Windows logon used to execute the JSMDirect, JSMProxy or JSMAdmin programs must have read/write access rights to the directories where jsmdirect.exe, jsmproxy.exe and jsmadmin.exe are installed.

The location of these log files is configurable, so they can be created else where.

The name of the configuration file for JSMDirect, JSMProxy and JSMAdmin is jsmcgi.cfg. This file is not created by the install process.

The configuration file must be located in the same directory from which JSMDirect, JSMProxy or JSMAdmin programs are started.

The log file directory is specified by the LOGFILELOCATION entry in the jsmcgi.cfg file.

If this entry cannot be read or is empty, the default folder is used.

Example

LOGFILELOCATION=c:\temp

 

In this case, the log files are created in the c:\temp directory.

LOGFILELOCATION=log

 

In this case, the log files are created in a directory named log, relative to the JSMCGI folder where JSMDirect, JSMProxy and JSMAdmin are installed.

For more information about specifying the Windows logon for executing the programs, refer to Step 4 of the Task: Configure the Java Service Manager on Windows in the Install or Upgrade LANSA on Windows Guide.