Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2065

BootstrapLogManager doesn't load etc/org.ops4j.pax.logging.cfg file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • karaf-1.2.0
    • karaf-1.4.0
    • Karaf
    • None
    • Linux Debian
      JVM Sun 1.5.0

    Description

      The BootstrapLogManager doesn't load the org.ops4j.pax.logging.cfg file from the correct location.

      By consequence, the log4j.appender.out.file property is set to ${karaf.base}/data/log/karaf.log. If the user setup a different log file name in the appender - for instance as follows:

      1. File appender
        log4j.appender.out=org.apache.log4j.FileAppender
        log4j.appender.out.layout=org.apache.log4j.PatternLayout
        log4j.appender.out.layout.ConversionPattern=%d {ABSOLUTE}

        | %-5.5p | %-16.16t | %-32.32c

        {1}

        | %-32.32C %4L | %m%n
        log4j.appender.out.file=${karaf.base}/data/log/my.log
        log4j.appender.out.append=true

      he will set:
      my.log
      karaf.log

      in the ${karaf.base}/data/log directory.

      Attachments

        1. FELIX-2065.patch
          0.8 kB
          Jean-Baptiste Onofré

        Activity

          People

            ccustine Chris Custine
            jbonofre Jean-Baptiste Onofré
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: