2 Replies Latest reply on Jan 2, 2017 10:17 AM by sbrandt

    org.apache.log4j.DailyRollingFileAppender not working in JBoss fuse

    tzachi.cohen

      Hi,

      I update org.ops4j.pax.logging.cfg to include my bundle, and configure it as bellow:

      somehow the rolling isn't working, I even configure it to change for every minute, but mouthing happens,

       

      this is my addition to this file

      # OneCollect Integration Logging Applications File appender

      log4j.appender.FILE_APPENDER=org.apache.log4j.DailyRollingFileAppender

      log4j.appender.FILE_APPENDER.layout=org.apache.log4j.PatternLayout

      log4j.appender.FILE_APPENDER.layout.ConversionPattern=%d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n

      log4j.appender.FILE_APPENDER.file=${karaf.data}/log/collect-integration.log

      log4j.appender.FILE_APPENDER.DatePattern='.'yyyy-MM-dd-HH-mm

      #log4j.appender.FILE_APPENDER.append=true

       

      # OneCollect Integration Logging Applications Loggers

      log4j.logger.com.amdocs.collect.integration=DEBUG, sift

       

      attach the entire file,

      please advise,

      Thanks Tzachi,