Custom Log File Location
Purpose
If you want to store the log files in a specific location, follow the steps below
Step by Step
Tomcat Logs
The log locations for the Tomcat application server can be changed in the following file:
apache-tomcat-9.0.xx\conf\logging.properties
In this file, you will find references to an igrafx.basedirectory variable that by default points to the igrafxdata directory in your Predeployed Platform. You will have to replace the variable reference with your custom log folder location. After making changes to this file, restart the application server.
Application Logs
For the iGrafx Process360 Live Process Design app logs, you can set a specific location in the file below
apache-tomcat-9.0.xx\conf\log4j2.xml
To customize the log location, a new file appender needs to be added to the <Appenders> element, and the new appender needs to be added to the root logger. See the below example for a custom log location
<?xml version="1.0" encoding="UTF-8"?> <Configuration> <Appenders> <!-- Set up console output... --> <Console name="Console" target="SYSTEM_OUT"> <PatternLayout pattern="[%p,%c{1}] %m%n" /> </Console> <RollingFile name="StartupAppender" fileName="${sys:igrafx.basedirectory}/logs/igrafx_server.log" filePattern="${sys:igrafx.basedirectory}/logs/igrafx_server-%d{yyyy-MM-dd-hh}_%i.log" append="true"> <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1} - %m%n%throwable"/> <Policies> <SizeBasedTriggeringPolicy size="10MB"/> </Policies> </RollingFile> <RollingFile name="CustomAppender" fileName="c:/custom_location/igrafx_server.log" filePattern="c:/custom_location/igrafx_server-%d{yyyy-MM-dd-hh}_%i.log" append="true"> <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1} - %m%n%throwable"/> <Policies> <SizeBasedTriggeringPolicy size="10MB"/> </Policies> </RollingFile> </Appenders> <Loggers> <Root level="error"> <AppenderRef ref="Console" /> <AppenderRef ref="StartupAppender" /> <AppenderRef ref="CustomAppender" /> </Root> <Logger name="com.igrafx.shared.context.ManagerContext" level="info" /> </Loggers> </Configuration>
After making these changes, restart the Application Server.
Do not change the StartupAppender or remove it from the <Root> element. When using a custom logfile, logging setting changes made under Administration → Support → Logging Settings will not apply to that log file. Custom log files can not be viewed in the System Logs area under Administration → Support as well.