Changing the Log File Location
By default, Loftware Enterprise SP application log files are located on the Loftware Application Server in the <LOFTWARE_HOME>\product\logs folder. To optimize storage, security, or performance, you might want to change the location of the Loftware Enterprise SP application log files.
Note: <LOFTWARE_HOME> represents the folder on the Loftware Application Server in which the Loftware Enterprise SP application is installed. For example, in Windows Server this might be C:\Loftware\Spectrum\Spectrum, and in Linux this might be /opt/loftware/spectrum/Spectrum. Although procedures in this documentation typically use backslashes in operating system paths, you should use forward slashes if required by your operating system.
- On the Loftware Application Server, navigate to the following folder:
<LOFTWARE_HOME>\product\conf - Open the custom_log4j2.xml file in a text editor. If that file does not exist, open the log4j2.xml file.
- Find the log directory property:
<Property name="LOG_DIR">${sys: catalina.base}/logs</Property>
-
Change the log directory property to specify the location where you want the log files to be stored on the Loftware Application Server.
<Property name="LOG_DIR">${sys: catalina.base}/<custom_location></Property>
Example
<Property name="LOG_DIR">${sys: catalina.base}/loftware-logs</Property>
- Save and close the file. After one minute, the Loftware Application Server starts outputting log files to the location you specified.
-
Move the existing files in the default log file directory (<LOFTWARE_HOME>\product\logs) to the new location.
Note: You might need administrator permissions to move certain files.
- You can confirm that the logs are no longer accessible by going to https://spectrum-server/logs/spectrum.log. If the page loads with a "Page not found" error, the logs have been successfully removed. If the page still appears, try clearing your browser cache and refreshing the page.