I\'m using Log4j2 ver 2.3
log4j2.xml looks like:
Log4j 2.3 is somewhat old, being released on 2015-05-09, almost 3 years old. So try using a updated version; version 2.11.0 is the latest as of now which was released on 2018-03-11.
Update: To continue using Log4j 2.3, you can compromise your requirements. One of the options could be using static value for fileName
attribute. E.g. .../catalina.log
, .../catalina.current.log
, etc.