# ILogger

The built-in logging interface.

## What is **ILogger**?

`ILogger<T>` writes log messages with levels (Information, Warning, Error). Use placeholders, not string concatenation, so logs stay searchable.

```csharp
public class OrderService(ILogger<OrderService> logger)
{
    public void Place(Order order) =>
        logger.LogInformation("Order {OrderId} placed for {Total}", order.Id, order.Total);
}
```

Level: Apprentice · [More ASP.NET Core terms at this level](https://www.ask-codey.com/glossary?category=aspnet-core&level=2)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/ilogger
