Add host information to logging
In a situation where you run multiple subsites, it can be very useful to know at which subsite (host) an error has occurred. You can modify your log pattern for this, to always prefix the log entry with the hostname of the subsite. Thus, for example, in your log4j2.xml use:
This is quite easy to do by using following pattern converter plugin:
Log4j2 starts searching for available plugins during it's initialization phase, and thus HostPatternConverter should be available at that time. It can be done by placing plugin file into same location as log4j libraries.
Compile time dependencies are required for: