Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1576

Configuration reloading not working with + in path

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.2.3
    • None
    • None
    • Windows 10

    Description

      I am starting my application specifying passing the path to the logbach.xml like this: "java -Dlogback.configurationFile=data/logback.xml -jar myapp.jar"

      In the absolute path to the logback.xml is a + character and it seems like with that character the configuration reloading with scan="true" and scanPeriod does not work. If I remove the plus it works.

      The part of my logback.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>
      <configuration scan="true" scanPeriod="5 seconds" debug="true">
      <statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
      <!-- Appender definition -->
       <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
       <file>userdata/log/hmi.log</file>
      ...
      

       

      Are there any restrictions existing for the path to the logback.xml?

      Attachments

        Activity

          People

            logback-dev Logback dev list
            oliver.pfau@tepcon.de Oliver Pfau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: