如何停止 var/log/messages 文件中的 Spring boot 应用程序控制台日志
我们使用 spring boot 和 log4j2 进行日志记录。我们已经指定了日志路径并且它正在工作。但相同的控制台日志正在移动到 var/log/messages 文件
有人可以帮助我如何停止在 var/log/messages 文件中记录控制台日志。
We're using spring boot and log4j2 for logging. We have specified the log path and it is working. But the same console logs are moving to var/log/messages file
Can someone please help me how to stop logging console logs in var/log/messages file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

我们在这里遇到了同样的问题,解决方案是在 application.properties 文件中添加以下参数:
Leaving 'blank' will stop thelogging
更多详细信息 此处
we had the same problem here, and the solution was add the following parameter on the application.properties file:
Leaving 'blank' will stop the logging on
More details Here