It removes the warning if I use the ConsoleAppender, but that won't roll over the file at the end of the day, which RollingFileAppender does. That is why I have been looking for a way to disable the log4j warning. Do you think any server configuration file or anything else could be used for this?
The "File" param is to specify the path of the log file to be generated at. I have overridden the path in java code to make it dynamic. The Appenders won't stop working if the path is missing, except it won't know where to place the log files. Since I am specifying the path through the java code, the logger works fine. But can't get rid of the worning messages. So any idea?