Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
langxml
titleSample context file
borderStyledashed
<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
langxml
titleSample logback.xml file
borderStylesolid
<configuration>

&nbsp; <appender name="FILE">
&nbsp;&nbsp;&nbsp; <file>/tmp/logfile.log</file>
&nbsp;&nbsp;&nbsp; <append>true</append>
&nbsp;&nbsp;&nbsp; <\!-\- encoders are assigned the type
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ch.qos.logback.classic.encoder.PatternLayoutEncoder by default \-->
&nbsp;&nbsp;&nbsp; <encoder>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} \[%thread\] %-5level %logger{36} - %msg%n</pattern>
&nbsp;&nbsp;&nbsp; </encoder>
&nbsp; </appender>

&nbsp; <root level="INFO">
&nbsp;&nbsp;&nbsp; <appender-ref ref="FILE" />
&nbsp; </root>

&nbsp; <logger name="org.bitrepository" level="DEBUG" />
</configuration>

Certificate and keyfile