I wanted to use parameters defined in context.xml on Tomcat 8 in configuration of Log4j2. My context was defined like:
Now I would like to use parameter instanceName in log filename. I spent many hours trying various approaches and googling. I wonder why is this not better documented - Using Log4j 2 in Web Applications does not really help. In the end it is easy - just use web: prefix like this: