I am using logback in my spring boot application.
Until now I was using application.properties and logback.xml from within the classpath (inside the jar).
Now when I have extracted both the files in a config directory outside the jar, Logback is not working as expected.
Now I have used @PropertySource in the application to give the filepath of the application.properties and that is working as expected.
But when the property
logging.config=file:config/logback.xml
In the application.property is not working due to some reasons I guess.
Also when I try to give the path of logback with System.property is the code, it is working. So why am I not being able to solve this with application.properties.
Also I have ensured that there are no logback files inside the jar.