How to log slf4j to a file in cuba Framework
How to log slf4j to a file in cuba Framework I'm trying to configure cuba framework in order to write the logs in a file, but at the moment I cannot. I have in the java files: private static final Logger LOG = LoggerFactory.getLogger(BlisterauftragServiceImpl.class); LOG.info("This is a, info log"); In the build.gradle file I have: logbackConfigurationFile = 'etc/war-logback.xml' Then in the folder etc, I have the file war-logback.xml <?xml version="1.0" encoding="UTF-8"?> <configuration debug="false" packagingData="true"> <property name="logDir" value="${app.home}/logs"/> <appender name="File" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${logDir}/app.log</file> <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> <level>DEBUG</level> </filter> ...