Problem description: my logger.info statements from my classes are logged in app.log as well as System.out (Websphere)
where as i am expecting it to see only in app.log ?
Is thereanything i am missing here !!!
I am loading log4j. properties using the following line in one of my classes ...
# Specify where to log by packages.
I hope you have not used System.out statements in your code.
Looking at your properties file, I can see no reason why your log statements will be printed in System.out.
Make sure there is no other log4j.properties file lying in your server classpath. You can verify this by deleting this current file and see if logging still works.
Something that might be helpful is to enable log4j debugging.
put this as the first line in your log4j.properties
Then loog4j will print out information about how it has been configured.
I don't see there is any problem, only that I have a question,
why is the rootlogger is set as ErroR , not INFO?
AFAIK, writing to app.log can be controlled by log4j, but SysOut.log can be switched ON/OFF by websphere settings (?)
Having the same problem, did you get it fixed?