简体   繁体   English

异步日志记录不报告崩溃

[英]Async logging is not reporting crashes

I have a Quarkus application and enabled asynchronous logging:我有一个 Quarkus 应用程序并启用了异步日志记录:

quarkus.log.async=true   

However, if there is a crash on startup which kills the process, the log is not output.但是,如果启动时发生崩溃而导致进程终止,则不会输出日志。 This is quite an issue as the worse the problem the more likely I have no information to go on.这是一个相当大的问题,因为问题越严重,我就越有可能没有信息可以继续。 Is there a way to somehow preserve the logs better?有没有办法以某种方式更好地保存日志? If I turn off async, the error is actually printed.如果我关闭异步,实际上会打印错误。

作为库中此问题的一部分在 quarkus 上修复: https : //github.com/quarkusio/quarkus/issues/20660

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM