title: Logging for application in different environment Log4j
body: <p>I am developing a logging framework using Log4j. I am not able to figure out how to maintain separate log files for different environment, i.e., development, testing, staging and production.</p>