当部署为战争时,Config.groovy 中的日志配置完全被忽略?

发布于 2024-11-27 03:51:49 字数 255 浏览 7 评论 0原文

当我使用 run-app 运行应用程序时,日志记录似乎可以正常工作。当我在 tomcat 中部署为 WAR 时,我的所有日​​志记录配置都会被忽略,并且我只能看到

LOGLEVEL logmessage

示例:

INFO Hello world

可能是什么原因导致的?我尝试删除tomcat的logging.properties,但这似乎没有任何作用。

When I run my application with run-app, logging seems to work correctly. When I deploy as a WAR in tomcat, all my logging configuration is ignored, and I only see

LOGLEVEL logmessage

Example:

INFO Hello world

What could possibly be causing this? I tried deleting tomcat's logging.properties, but that didn't seem to do anything.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

初雪 2024-12-04 03:51:49

即使完全擦除日志记录后,我仍然在 catalina.out 中看到这一点,而我的日志记录已正确写入日志文件。插件或库可能会搞砸我的日志记录,但此时追踪它是不值得的。

Even after wiping the logging entirely, I still see this in catalina.out, while my logs to a log file are written correctly. A plugin or library, likely, is screwing up my logging, but tracing it down at this point isn't worth it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文