Logback is not writing specific log file Solution

Logback is not writing specific log file Solution Logback Configuration: <property name=”DEV_HOME” value=”/root/apps/logs” /> <appender name=”FILE-AUDIT” class=”ch.qos.logback.core.rolling.RollingFileAppender”> <file>${DEV_HOME}/myapp.log</file> <rollingPolicy class=”ch.qos.logback.core.rolling.TimeBasedRollingPolicy”> <!– rollover daily –> <fileNamePattern>${DEV_HOME}/archived/myapp.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern> <timeBasedFileNamingAndTriggeringPolicy class=”ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP”> <!– or whenever the file size reaches the max –> <maxFileSize>${rolling.file.max.size}</maxFileSize> </timeBasedFileNamingAndTriggeringPolicy> <maxHistory>${rolling.file.max.history}</maxHistory> </rollingPolicy> <encoder> <pattern>${rolling.file.encoder.pattern}</pattern> </encoder> </appender> Issue is related to conflict between log4j and Logback, whenContinue reading “Logback is not writing specific log file Solution”

Rate this: