如何使用IIS Express在ASP.NET Core中获取控制台输出 [英] How to get a Console output in ASP.NET Core with IIS Express
问题描述
ASP.Net Core文档此处具有不错的控制台日志记录输出像下面的图片一样,带有各种LogLevel的颜色.现在,我已经在Visual Studio中创建了一个应用程序,并且看到它现在在IIS Express后面运行,并且不再看到控制台了.我记得当我运行beta时,它确实通过此出色的Console输出直接弹出了Kestrel.
ASP.Net Core documentation here has a nice console logging output like in the picture below with colors for various LogLevels. I have now created an application in Visual Studio and I see that it now runs behind IIS Express and I don't see the console anymore. I remember when I did run beta, then it did pop up Kestrel directly with this nice Console output.
现在有可能获得这个漂亮的窗口吗?
Is it possible to get this nice window now?
P.S.文档中仍然包含您甚至看不到的这些图像,这有点奇怪.
P.S. It's a bit strange that the documentation still contains these images that you cannot even see.
推荐答案
除了Dawid Rutkowski答案之外.在顶部下拉列表中,不要选择IISExpress,而是选择应用程序名称.您应该能够看到控制台和网页.
In addition to Dawid Rutkowski answer. On top dropdown dont select IISExpress select the application Name. You should be able to see the Console and the Web Page.
这篇关于如何使用IIS Express在ASP.NET Core中获取控制台输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!