Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-241

slf4j not logging to file in linux box using websphere 7 seems ok in windows.

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.5.x
    • Implementations
    • None
    • Operating System: Linux
      Platform: All

    Description

      Using Spring 3.1.0.RC1/slf4j 1.5.8/log4j 1.2.16
      <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.5.8</version>
      </dependency>
      <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>jcl-over-slf4j</artifactId>
      <version>1.5.8</version>
      </dependency>
      <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
      <version>1.5.8</version>
      </dependency>

      <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.16</version>
      </dependency>

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" >

      <log4j:configuration debug="false">
      <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
      <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d

      {yyyy-MM-dd HH:mm:ss.SSS}

      %t %X

      {hostname} %m%n"/>
      </layout>
      </appender>


      <appender name="dailyRollingFileAppender" class="org.apache.log4j.DailyRollingFileAppender">

      <param name="File" value="/logs/xyz.log"/>

      <param name="Append" value="true"/>
      <param name="DatePattern" value="'.'yyyy-MM-dd"/>
      <layout class="org.apache.log4j.PatternLayout">
      <!-param name="ConversionPattern" value="%d [%t] %p - %m%n"/->
      <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %t %X{hostname}

      %m%n"/>
      </layout>
      </appender>

      </log4j:configuration>

      logging seems to work fine on local box. We are able to see console logging as well as file logging. However in a lunix box using websphere 7 the file log is empty. Any help is much appreciated/

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            chandini_9@yahoo.com chandini
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: