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

Default log4j configuration uses line number option which is extremely slow according to log4j docs

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Critical Critical
    • 7.0.0.fuse-beta-051
    • 7.0.0.fuse-037
    • None
    • None
    • % %

      See
      http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html
      Notice the description for the L option in the table.

      See the default log4j setting in Fuse ESB in etc/org.apache.karaf.log.cfg

      #
      # The pattern used to format the log statement when using log:display. This pattern is according
      # to the log4j layout. You can override this parameter at runtime using log:display with -p.
      #
      pattern = %d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
      

      Notice that we use %4L in the configuration

            janstey@redhat.com Jonathan Anstey
            cibsen@redhat.com Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: