Question:

Customer would like to change the location of the log files in Ephesoft such as to the /var/log/Ephesoft directory.

Answer:

1. Application Logs: Please perform the following changes for changing the path of application logs:

(Application logs default to the /opt/Ephesoft/Application/logs/ location.)

Log File File changed String changed
dcma-all.log /opt/Ephesoft/Application/log4j.xml EphesoftFileAppender
dcma_report-all.log /opt/Ephesoft/Application/log4j.xml DEBUG_APPENDER

 

 

1

log4j.xml(Changing the path for dcma-all.log)

 

2

log4j.xml(Changing the path for dcma_report-all.log)

Please replace @@INSTALL_DIR@@ and ${dcma.home} with the desired path on which user wants to generate the application logs.

 

2. Tomcat Logs: Please perform the following changes for changing the path of tomcat logs :

(Tomcat logs default to the /opt/Ephesoft/JavaAppServer/logs location)

Log File File changed String changed
catalina.*.log /opt/Ephesoft/JavaAppServer/conf/logging.properties ${catalina.base}/logs
catalina.out /opt/Ephesoft/JavaAppServer/bin/catalina.sh CATALINA_OUT
host-manager.*.log /opt/Ephesoft/JavaAppServer/conf/logging.properties ${catalina.base}/logs
localhost.*.log /opt/Ephesoft/JavaAppServer/conf/server.xml directory=”logs”
manager.*.log /opt/Ephesoft/JavaAppServer/conf/logging.properties ${catalina.base}/logs

 

3

logging.properties(Changing the path for catalina.*.log, host-manager.*.log, manager.*.log ))

 

4

Server.xml(Changing the path for localhost.*.log )

 

5

Catalina.sh (Changing the path for catalina.out file)

Please replace ${catalina.base}, “logs” and  “$CATALINA_BASE”/logs/catalina.out” with the desired path on which user wants to generate the tomcat logs.

 

Note:

  1. Before changing the path for tomcat logs please take backup of exiting logging properties or xml configuration files. The corresponding logs folder must be created at the appropriate path before starting the server.
  2. Proper permission must be assigned to the logs folder(755 recommended).

 

 

Was this article helpful to you?

J.D. Abbey