Search documentationEsc

Logging

Event ID ranges and the high-performance logging strategy used by the library.

The library follows the high-performance logging guidelines and uses LoggerMessage source generators throughout. This means structured logging with very low allocation overhead.

Event ID ranges

Every log message is emitted with an EventId. We split the range so you can filter by severity quickly:

Log levelEventId range
Debug/Verbose15000 – 15100
Information15101 – 15200
Warning15201 – 15300
Error15301 – 15400
Critical15401 – 15500

Tuning the log level

You can configure the library’s log level independently from the rest of your application:

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.Azure.CosmosRepository": "Debug"
}
}
}

Drop to Debug to see container creation, change-feed lifecycle, and per-operation diagnostics.