configure-logging
Installation
SKILL.md
Configuring Logging in ABP
When to Use
- Configure a logging provider for an ABP host.
- Log from application services through
ILogger<T>. - Understand logs emitted before the final service provider exists.
- Preserve ABP exception log levels, error metadata, and self-logging behavior.
- Follow the startup-template Serilog pattern.
When Not to Use
- Audit log persistence, contributors, or entity change history — use configure-audit-logging.
- Tracing, metrics, exporters, or telemetry sampling — out of scope here; ABP ships no OpenTelemetry framework module, so wire the OpenTelemetry .NET SDK directly.
- HTTP exception response mapping or client-visible details — use handle-validation-and-errors.
How it works
ABP does not replace Microsoft.Extensions.Logging. Register providers through the standard .NET host and inject ILogger<T> into services.