Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Core 2.2 + IIS: Where can I see logs (ILogger) for my app in IIS on server?

I using ASP.NET Core built-in logger provider (ILogger), but can't understood where can I see logs on a remote IIS server

like image 680
Richard S. Popov Avatar asked Oct 20 '25 12:10

Richard S. Popov


1 Answers

It depends which loggers you use. The default console logger doesn't create persistent logs. You can use Windows Event Log, or add 3rd party loggers like Serilog to have persistent logs.

See the documentation on logging https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-2.1

At the bottom of the page it talks about the built in loggers. But other 3rd party loggers are also available. You can use multiple loggers.

like image 100
Joe Audette Avatar answered Oct 22 '25 05:10

Joe Audette



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!