The definition of the root registrar is a bit confusing. See the log4j documentation.
This is a standard Java properties file, which means strings are treated as key = value pairs. The second line of log4j.rootLogger overwrites the first, which explains why you don't see anything in the app console .
You need to combine the two rootLogger definitions into one. It looks like you are trying to transfer DEBUG messages to the console and INFO messages to a file. The root logger can have only one level, so you need to change your configuration so that add-ons have the appropriate levels.
Until I confirmed that this is correct, I would suggest that it would look something like this:
log4j.rootLogger=DEBUG,console,file log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.file=org.apache.log4j.RollingFileAppender
Note that you also have a bug in the case - you have a lowercase console in one place and in CAPS in another.
Steven Schlansker Aug 01 '10 at 17:29 2010-08-01 17:29
source share