Tag Archives: logging

Log4j 2 configuration depending on environment

In a recent project, we used Log4j 2 as a backend for slf4j. Logging is configured differently for the local application start than for production. To do this, we used to have one configuration per environment and a piece of … Continue reading

Posted in Did you know? | Tagged , , , | 4 Comments

Using the context path of a web-app as log filename with Log4J

If you have a web application which you want to deploy more than once to a single servlet container you have the problem of separating your log files for the different web app instances. This is because the log configuration … Continue reading

Posted in Build, config and deploy | Tagged , , | 4 Comments