As documented at http://logging.apache.org/log4j/2.x/manual/configuration.html#AutomaticConfiguration <http://logging.apache.org/log4j/2.x/manual/configuration.html#AutomaticConfiguration> you can use log4j.configurationFile.
Ralph > On Jan 10, 2018, at 8:40 AM, Debraj Manna <subharaj.ma...@gmail.com> wrote: > > Is it possible to have log4j configuration in some file other than > log4j.xml.? > > In log back this can be done via -*Dlogback.configurationFile.* > > *I am looking for something similar.*