当部署为战争时,Config.groovy 中的日志配置完全被忽略?
当我使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
即使完全擦除日志记录后,我仍然在 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.