Logback scan not working

后端 未结 5 1319
清歌不尽
清歌不尽 2021-02-20 03:18

I am having trouble getting the auto scan functionality of logback to work. It doesn\'t seem to pick up the changes. I have added debug=\"true\" to section and reading it\'s ou

5条回答
  •  面向向阳花
    2021-02-20 04:11

    With logback 1.2.3, config file rescanning also seems to silently fail if the path to the file contains a +. E.g. this works:

    -Dlogback.configurationFile=etc/logback.xml

    while this fails:

    -Dlogback.configurationFile=etc+/logback.xml

    Logback manages to load logback.xml correctly at initialization; it's just the reloading that fails in the latter case. If + doesn't work, it's possible that other characters are also problematic.

    I went to file a bug on it but the JIRA instance linked from https://logback.qos.ch/bugreport.html seems to be currently nonfunctional.

提交回复
热议问题