In maven war deployment, is it possible to make log4j2.xml fileName as configurable. Following is my application structure.
Currently the paths are hardcoded in the log4j2.xml file.
Yes, you can use Lookups in the file name that will be evaluated when the configuration is processed. So you can create a file name like “${sys:LOG_DIR:-logs}/app.log”.