如何在Nestjs+ GraphQl?
我正在使用下面的Apollo尝试Nestjs + GraphQl。当我将Apollo“调试”选项设置为真时,我可以在响应中看到堆栈Trace,但是我找不到在应用程序日志中记录此stackTrace的方法。
我想在日志中将其列入生产中的问题。有办法这样做吗?
I'm trying out NestJS + GraphQL using Apollo underneath. When I set the Apollo 'debug' option to be true, I can see the stacktrace in the response but I cannot find a way to log this stacktrace in our application logs.
I would like to have it in the log to troubleshoot issues in production. Is there a way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是我使用的apolloservlugin
Here's the ApolloServerPlugin I use
我能够使用Apolloserverplugin进行此操作。
I was able to do this using ApolloServerPlugin.