I am new to log4j! I am using IntelliJ Idea. I am deployng EAR app on Jboss 7.1.1 Final. My EAR app contains EJB and WAR packages.
So the question is - Where to put log4j.properties or log4j.xml? And do I need to initialize it in code or not?
There is no need to include a log4j.xml or logging.properties configuration file with your application if you're using JBoss AS 7. The only reason to do that would be to use an appender that is not included in the JBoss AS 7 logging subsystem.