Category "logback"

Merge logging config of Spring boot and Logback

I have a following situation: A spring boot app using logback and several logging properties configured already in application.yml I would like to add other con

How to configure gradle to use logback-classic ONLY for unit tests in Android?

I have an Android app thich uses slf4j + logback. Gradle file looks like this: ... compile('com.github.tony19:logback-android-core:1.1.1-6') { exclude grou

spring boot logback-spring.xml maxFileSize not working with SizeAndTimeBasedRollingPolicy

I want to configure logging in spring boot application. I have configure logback-spring.xml. The sample of logback-spring.xml is located on here and sample of a

Logback cannot find a custom configuration file (FileNotFoundException)

I can't force logback to use my custom configuration file because it doesn't see it. Here is my project structure: src --main ----java ----resources ------log

Setting logback property via spring config + environment variable in spring config

I want to configure logback in such way that some specific appender will work only if system variable LOGGER_ENABLED is set to true. If the variable is not set