0 Replies Latest reply: Apr 11, 2013 3:56 AM by AnkurJ RSS

    log4j is not working on solaris 10

    AnkurJ
      Hi,

      I am creating a SOA application in which i configured log4j. I deployed the application on windows , then log4j is working fine, log file is creating on the specified file as well as log is printing on console. But when i deployed the same application on Solaris neither log file is generated nor logs are generated on console. And i not getting any warning or error. I am putting log4j.properties file in classpath.

      I am stuck in this problem since last three days, but not getting any resolution.

      I am using the following configuration

      1) log4j-1.2.17.jar 2) weblogic 10.3.6.0

      Below is the log4j.properties

      # Define the root logger with appender file
      log4j.rootLogger=info,DailyRoller,stdout
      log4j.appender.stdout=org.apache.log4j.ConsoleAppender
      log4j.appender.stdout.Target=System.out
      log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
      log4j.appender.stdout.layout.ConversionPattern=%t %-5p %c{2} - %m%n

      log4j.appender.DailyRoller=org.apache.log4j.DailyRollingFileAppender
      log4j.appender.DailyRoller.datePattern='.'yyyy-MM-dd-HH-mm
      log4j.appender.DailyRoller.file=d:\\molLog\\log.log

      # below is for solaris

      #log4j.appender.DailyRoller.file=/data/MOL/log/log.log

      log4j.appender.DailyRoller.layout=org.apache.log4j.PatternLayout
      log4j.appender.DailyRoller.immediateFlush=true

      log4j.appender.DailyRoller.layout.ConversionPattern=%d %p %t [%c] - %m%n

      Your help will be very helpful.

      Thanx Ankur jain