Home > database >  Log_path_is_undefined and log_file_is_undefined
Log_path_is_undefined and log_file_is_undefined

Time:10-11

I'm updating Spring boot version from 2.5 to 2.6 and I encounter an issue with Logback. Here's the snippet of my application.properties file:

logging.file=abc.log
logging.path=.

And a part of my logback-spring.xml

 <appender name="FILE" >
        <file>${LOG_PATH:-.}/${LOG_FILE}.log</file>

        <rollingPolicy >
            <fileNamePattern>${LOG_PATH:-.}/${LOG_FILE}-%i.log</fileNamePattern>
            <minIndex>1</minIndex>
            <maxIndex>3</maxIndex>
        </rollingPolicy>

        <!-- Only allow a file to get to ~10MB -->
        <triggeringPolicy >
            <maxFileSize>10MB</maxFileSize>
        </triggeringPolicy>

        <encoder>
            <pattern>           
  • Related