Logging

On one of your engine-hosts, while logged in as escenic:

  1. Create the folder /etc/escenic/engine/common:

    $ mkdir /etc/escenic/engine/common
  2. 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:

  1. Create the output folder specified in trace.properties:

    $ mkdir /var/log/escenic/engine
  2. 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
  3. 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 with FileHandler.directory) to /var/log/tomcat.