简体   繁体   English

在Azure上的IISNode中“启用日志记录:true”对性能有什么影响

[英]What is the performance impact of 'logging enabled: true' in IISNode on Azure

This article states that it is possible to log the outputs of StdOut and StdErr streams to the file system. 本文指出,可以将StdOut和StdErr流的输出记录到文件系统中。

What is the performance impact of doing this? 这样做对性能有何影响? Should I leave it on in production? 我应该继续生产吗?

As node.js application on Azure Web Apps is handled via iisnode module. 由于Azure Web Apps上的node.js应用程序是通过iisnode模块处理的。 And logging enable is only a functionality of iisnode which will have very little impact. 并且启用日志记录只是iisnode的功能,其影响很小。 As which also should to be a good method to trace error info in production env. 因为这也应该是在生产环境中跟踪错误信息的好方法。

Meanwhile, it is recommended that we can set up staging environments in your Web Apps, separate production and dev staging slot, if we need to use iisnode's troubleshooting configurations as document mentions at Best practices and troubleshooting guide for node applications on Azure Web Apps 同时,如果我们需要使用iisnode的疑难解答配置(如最佳实践和Azure Web Apps上的节点应用程序的疑难解答指南中提到的文档所述),则建议我们可以在Web Apps中设置过渡环境,并在生产和开发阶段分开设置。

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

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