How to configure log4j.properties file using log4j.configuration JVM argument

Give the full path to your log4j.properties file as below

-Dlog4j.configuration=file:/C:/workspace/project/etc/log4j/log4j.properties