You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use logback configuration with scan="true" that reconfigures logback whenever logback.xml changes. However, the first reload causes that no more logback events are recorded.
I added 'debug="true"' to the logback.xml file and do see the following lines after a change of the file logback.xml:
10:47:39,128 |-INFO in ReconfigureOnChangeTask(born:1739785644121) - Detected change in configuration files. 10:47:39,128 |-INFO in ReconfigureOnChangeTask(born:1739785644121) - Will reset and reconfigure context named [default] 10:47:39,129 |-INFO in ReconfigureOnChangeTask(born:1739785644121) - Resetting loggerContext [default]
Attached project
The attached project can be used to reproduce this issue. The project was created using the KMP Wizard only selecting 'Desktop'. Main changes are adding logback libraries and few log outputs.
Steps to reproduce the issue:
compile and build the project
execute the program
change the file logback.xml that is located in the folder './KMPLogbackSample/lib/app/resources'
@cke42 Thank you for your report. Can you please provide a shorter/simpler test case using only Java? I cannot import untrusted projects for security reasons.
@ceki Thanks a lot for your very fast response! Sorry, but I currently have no idea how to provide a shorter/simpler test case.
Basically you can use the logback.xml used within the provided project, attach it to any simple project using logback and change the logback.xml file.
Do you have any simple Java project using logback that I could use within Eclipse for testing purposes?
I use logback configuration with scan="true" that reconfigures logback whenever logback.xml changes. However, the first reload causes that no more logback events are recorded.
I added 'debug="true"' to the logback.xml file and do see the following lines after a change of the file logback.xml:
10:47:39,128 |-INFO in ReconfigureOnChangeTask(born:1739785644121) - Detected change in configuration files. 10:47:39,128 |-INFO in ReconfigureOnChangeTask(born:1739785644121) - Will reset and reconfigure context named [default] 10:47:39,129 |-INFO in ReconfigureOnChangeTask(born:1739785644121) - Resetting loggerContext [default]
Attached project
The attached project can be used to reproduce this issue. The project was created using the KMP Wizard only selecting 'Desktop'. Main changes are adding logback libraries and few log outputs.
Steps to reproduce the issue:
Many thanks in advance!
KMPDesktopLogbackSample.tar.gz
The text was updated successfully, but these errors were encountered: