Logging
On one of your engine-hosts, while logged in
as escenic
:
-
Create the folder
/etc/escenic/engine/common
:$
mkdir /etc/escenic/engine/common -
Create a logging configuration file called
trace.properties
in the new folder. This file should have the following content:log4j.rootCategory=ERROR log4j.category.com.escenic=ERROR, ECELOG log4j.category.neo=ERROR, ECELOG log4j.appender.ECELOG=org.apache.log4j.DailyRollingFileAppender log4j.appender.ECELOG.File=/var/log/escenic/engine/ece-messages.log log4j.appender.ECELOG.layout=org.apache.log4j.PatternLayout log4j.appender.ECELOG.layout.ConversionPattern=%d %5p [%t] %x (%c) %m%n
On all your engine-hosts, while logged in as
escenic
:
-
Create the output folder specified in
trace.properties
:$
mkdir /var/log/escenic/engine -
In order to make Tomcat use the
trace.properties
file, create a link to it from/opt/tomcat/lib
:$
cd /opt/tomcat/lib$
ln -s /etc/escenic/engine/common/trace.properties -
In order to make Tomcat output its log files to a standard Unix/Linux location, open
/opt/tomcat/conf/logging.properties
for editing and set all the log folder properties (they have names ending withFileHandler.directory
) to/var/log/tomcat
.