title: JBoss AS 6 and Log4j
body: <p>I know there are plenty of posts out there on this topic, but I am not finding any of them helpful or relevant.</p>
  
  <p>I have a simple requirement. I am moving from JBoss AS 4.0.4 to JBoss AS 6. In my 4.0.4 environment I have a log4j.xml in server/myconfig/conf folder, and log4j.jar in server/myconfig/lib. I realise that JBoss AS 6 has changed to a native logging framework. We are heavily dependent on log4j and changing is not practical. I have seen many posts saying to package log4j jar and the log4j.xml file in your application. I have dozens of jar and war files in deploy and lib. Would I seriously be expected to package the log4j.jar and log4j.xml into all of them? I would hope not, so maybe setting -Djboss.as.logging.per-deployment=false will help? But I still see people saying to put log4j.jar and log4j.xml into ear/war files even with that set.</p>
  
  <p>If someone could please tell me how I can mimic my 4.0.4 set up please.</p>
  
  <p>Thanks,
  Paul</p>