Results 1 to 2 of 2
  1. #1
    pbs is offline Member
    Join Date
    Sep 2009
    Rep Power

    Default log4j: Multiple entries on Tomcat stdout file using log.error

    Hi All,

    We are getting a strange issue on using log.error on our application. We are using log4j for logging. In our application we log the errors encountered by the app using log.error(). But instead of printing the error once it prints number of times. If we use System.out.println statement just before log.error(), The content on System.out.println gets printed only once but the log.error prints its content multiple time. Someone please help us to find out what causes the multiple entries on Tomcat's stdout file.

    Thanks in advance

  2. #2
    kzvi.kzvi.1 is offline Member
    Join Date
    Oct 2008
    Rep Power


    This is a typical problem with multiple Log appender being configured in your file. Please post your file content here and I assist you with this.

    sometimes there are multiple file in application CLASSPATH which causes this so make sure you have only one file in your app CLASSPATH.
    Have fun....

Similar Threads

  1. Log4J properties file locked by tomcat
    By namrata014 in forum Advanced Java
    Replies: 2
    Last Post: 07-14-2009, 08:42 AM
  2. Tomcat iBatis log4j
    By Tokajac in forum Web Frameworks
    Replies: 0
    Last Post: 07-17-2008, 04:02 PM
  3. tomcat exception-error
    By Nick15 in forum Eclipse
    Replies: 2
    Last Post: 05-11-2007, 02:32 AM
  4. error Tomcat in eclipse
    By Marty in forum Eclipse
    Replies: 1
    Last Post: 05-06-2007, 05:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts