Devcat Server - Configuration

Devcat Server Configuration

The devcat server can be configured in two ways, one for log4j output and the other for hotswap agent fine tuning.

This should rarely be necessary, since the default settings should be fine for most of the usage scenarios.

Log4j2

Devcat brings a developer friendly log4j2 configuration which is copied on server startup as log4j2.xml file into the <webapp-dir>/WEB-INF/config/default folder.

The original config file coming from the Magnolia tomcat installation is copied to log4j2.xml.orig in the same folder as backup.

Custom changes to the log4j2.xml can be made freely and won’t be overwritten on devcat startup as long as the log4j2.xml.origfile is kept.

Hotswap Agent

On server startup devcat checks, if the hotswap-agent.properties file is available in <webapp-dir>/WEB-INF/classes folder. If not it will copy a tailored configuration for using the hotswap-agent with devcat.

The hotswap-agent.properties file can be adapted freely to refine the hotswap-agent configuration. This is usually not necessary, but if needed see https://hotswapagent.org/mydoc_configuration.html.