经过大量搜索后,我发现,Spring Boot尚不支持此功能。这些选项仅是:
# LOGGINGlogging.config= # Location of the logging configuration file. For instance `classpath:logback.xml` for Logbacklogging.exception-conversion-word=%wEx # Conversion word used when logging exceptions.logging.file= # Log file name. For instance `myapp.log`logging.level.*= # Log levels severity mapping. For instance `logging.level.org.springframework=DEBUG`logging.path= # Location of the log file. For instance `/var/log`logging.pattern.console= # Appender pattern for output to the console. only supported with the default logback setup.logging.pattern.file= # Appender pattern for output to the file. only supported with the default logback setup.logging.pattern.level= # Appender pattern for log level (default %5p). only supported with the default logback setup.logging.register-shutdown-hook=false # Register a shutdown hook for the logging system when it is initialized.
因此,暂时不要在此上浪费时间。它将在20MB之后滚动,但文件名类似于$ {your_file_name}
.log.1等。Spring应该支持将滚动文件名模式提供给我们。而且它也不是存档文件。



