Skip to main content

1. Environment

2. Packages

3. Program.cs

Without WithLogging(), you get traces/metrics only — onboarding will wait forever for INFO/ERROR logs.

4. Log libraries

With WithLogging().AddOtlpExporter() registered, inject ILogger<T> as usual:

5. Verify

Produce one INFO log and one ERROR log, then confirm both in Tracelit Logs (or the onboarding live preview).