Reputation: 183
When I start default ASP.NET Core application I got the following lines in console:
Hosting environment: Production
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
Where I can change this logs?
Upvotes: 0
Views: 778
Reputation: 387667
Those lines are not logged, instead they are printed to the console. What is causing this output is the WebHost.Run()
which is the default way to start your application. Or in particular, the internal RunAsync()
which sets everything up.
You cannot change the output without writing that code yourself.
Upvotes: 2