...
Context parameters can be specified in multiple ways, but the easiest way is to use context.xml.default. The file should reside in $TOMCAT_ROOT/conf/$ENGINE_NAME/$HOST/
Below is an general example of setting a context parameter in the context.xml.default file.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<Context override="true"> <Parameter name="parameter-name" value="parameter-value" override="false" /> </Context> |
Configuration files
...
The needed configuration files should be placed in the directory indicated by the context parameter value.
The logging setup is done by the logback.xml file and is likely to be similar across the different services, probably only differing to which file the log is written to. Below is an example logback.xml file. The content of the <file>-tag should be altered to reflect the file that is to be logged to.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<configuration>
<appender name="FILE">
<file>/tmp/logfile.log</file>
<append>true</append>
<\!-\- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default \-->
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} \[%thread\] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="FILE" />
</root>
<logger name="org.bitrepository" level="DEBUG" />
</configuration> |