java - 如何使用 log4j 在 Spring Boot 中创建最近 5 天的记录器 zip 文件?
问题描述
我遵循此示例,但此示例使用 xml 文件。我想使用属性文件。
https://examples.javacodegeeks.com/enterprise-java/logback/logback-rollingfileappender-example/
解决方案
请参阅下面的链接,了解如何使用 YAML/JSON/Properties 等不同选项进行配置
https://logging.apache.org/log4j/2.x/manual/configuration.html
具体属性:
https://springframework.guru/log4j-2-configuration-using-properties-file/
推荐阅读
- python - 在 Anaconda 之外使用 Python 包
- c - 我得到了意想不到的输出
- angular - 在angular7中禁用以前日期的ng-bootstrap日期和时间
- spring - 如何让用户发送电子邮件?
- javascript - 控制台说注册表单不存在 onsubmit 功能,尽管它显然存在
- python - Python Read/Parse Account:Password txt file line by line
- node.js - AWS Lambda 无法调用没有 VPC 的另一个 AWS Lambda - NodeJs
- apache-camel - 骆驼并行处理:RouteDefinition 无法转换为 org.apache.camel.model.TryDefinition
- rcpp - 在 Rcpp 函数中停止(作为包的一部分)以调试模式结束
- angular - 如何在点击时将 AutoFocus 指令添加到输入?