Serilog.Sinks.Trace [](https://ci.appveyor.com/project/serilog/serilog-sinks-trace/branch/master) [](https://www.nuget.org/packages/Serilog.Sinks.Trace/)

June 7, 2024 · View on GitHub

Note: this sink writes regular log events to System.Diagnostics.Trace. If you're looking for distributed/hierarchical tracing with Serilog, see SerilogTracing instead.

Writes Serilog events to System.Diagnostics.Trace.

var log = new LoggerConfiguration()
    .WriteTo.Trace()
    .CreateLogger();

Copyright © Serilog Contributors - Provided under the Apache License, Version 2.0.