栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

Spring Boot Logback滚动文件追加程序不起作用

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Spring Boot Logback滚动文件追加程序不起作用

经过大量搜索后,我发现,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应该支持将滚动文件名模式提供给我们。而且它也不是存档文件。



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/402986.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号