liveBook · Manning

Console logging provider

As explained in Building Web APIs with ASP.NET Core

The console logging provider writes log messages to the application's console output.

The console logging provider displays log records in the console window used to launch an ASP.NET Core application. It receives records from the ILogger API according to configured logging settings. section 7.2.4

Verify console output

Run the application and look for a timestamped entry naming the controller and operation, such as a BoardGamesController Get method message.

How Building Web APIs with ASP.NET Core covers it

How deep it goes
Explains provider responsibility and demonstrates registration and formatting, while deferring provider internals.
Examples
Uses builder registrations, formatter options, JSON logging settings, and a timestamped controller log entry.
What it assumes
Assumes familiarity with ASP.NET Core application startup and the ILogger API.
What you can do after
Operate/configure console logging with WebApplicationBuilder and verify formatted records in application output.
How it connects
Connects logging providers with the ILogger API, Debug provider, application configuration, and ASP.NET Core hosting.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Web APIs with ASP.NET Core. The section links point to the parts of the book it draws on.