Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9932

Feature to filter result logging files, when using MDC Sift logging per bundle

XMLWordPrintable

    • 0
    • 0% 0%
    • Todo

      Customer is using following log configuration
      ( org.ops4j.pax.logging.cfg )

      log4j2.appender.foo.type = Routing
      log4j2.appender.foo.name = MySiftingAppender
      log4j2.appender.foo.routes.type = Routes
      log4j2.appender.foo.routes.pattern = $\\{ctx:bundle.name}
      log4j2.appender.foo.routes.bar.type = Route
      log4j2.appender.foo.routes.bar.appender.type = RollingRandomAccessFile
      log4j2.appender.foo.routes.bar.appender.name = RollingFile
      log4j2.appender.foo.routes.bar.appender.fileName = ${karaf.data}/log/sift-$\\{ctx:bundle.name}.log
      log4j2.appender.foo.routes.bar.appender.filePattern = ${karaf.data}/log/sift-$\\{ctx:bundle.name}-%i.log.gz
      log4j2.appender.foo.routes.bar.appender.append = true
      log4j2.appender.foo.routes.bar.appender.layout.type = PatternLayout
      log4j2.appender.foo.routes.bar.appender.layout.pattern = %d{DEFAULT} %-5.5p {%t} [%C.%M()] (%F:%L) [[%X]] : %m%n
      log4j2.appender.foo.routes.bar.appender.policies.type = Policies
      log4j2.appender.foo.routes.bar.appender.policies.size.type = SizeBasedTriggeringPolicy
      log4j2.appender.foo.routes.bar.appender.policies.size.size = 16MB
      log4j2.appender.foo.routes.bar.appender.strategy.type = DefaultRolloverStrategy
      log4j2.appender.foo.routes.bar.appender.strategy.max = 21
      ...
      log4j2.rootLogger.appenderRef.Sift.ref = MySiftingAppender
      

      As there are many log files generated, that are not of his interest, he wants a feature to filter the logs files produced by this configuration

              rhn-support-anarvaez Alfredo Narvaez
              rhn-support-anarvaez Alfredo Narvaez
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: