1 2 Previous Next 19 Replies Latest reply on Apr 20, 2012 5:24 PM by Andrej Podgorsek

    Log4j properties file not working

    Andrej Podgorsek Newbie

      Hi. I can not get log4j to work on JBoss 7.1.1.Final. I have defined a fileappender and while it creates the log file correctly, but with 0bytes and everything goes to server.log instead of application.log file


      My pom config is as follows








      and I've also added something I found on forums








                     <!-- Java EE 6 doesn't require web.xml, Maven needs to catch

                        up! -->












      Ive also found something on topic of jboss-deployment-structure.xml


      <?xml version="1.0" encoding="UTF-8"?>




              <module name="org.apache.log4j" />





      And the external properties file which I can see in logs is read and also creates C:/logs/project/project.log


      log4j.rootCategory=INFO, file




      log4j.appender.file.layout.ConversionPattern=%d %-5p (%13F:%L) %3x => %m%n



        1 2 Previous Next