I have configured log4j to utilize a environment property to read in log4j and other startup properties based on the server being deployed on.
The logger is initialized correctly based on location without problems. However, a logger warning message is output to the console since Spring wants to log before the Log4jConfigurer is initialized. This outputs the following message.
I can suppress the warning message by putting a default log4j.properties in the class path that turns off all org.springframework logging but it there a better way without including this file in every webapp? I have read the thread (/showthread.php?t=15909) about the same issue but didn't see a solution to this without using a class to configure log4j.
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.