Description
Serilog is a logging library for .NET that records structured events rather than plain text lines. It writes diagnostic logs to files, the console and other destinations through sinks, and the site says it is easy to set up, has a clean API and is portable between recent .NET platforms. Its message templates extend .NET format strings, so each named parameter is saved as a property on the event, which makes logs searchable and sortable. The @ operator serializes an object instead of calling ToString, and format specifiers such as :000 control how a value is rendered. The site shows an example that records a position and an elapsed time, and the console sink renders it readably. The documentation covers installation, configuration basics, writing log events, structured data, the provided sinks and debugging. The project is open source on GitHub, with a wiki of getting started and configuration guides, and questions are tagged on Stack Overflow.…
Highlights
- Structured events instead of plain text lines
- Message templates with named properties
- Sinks for files, console and other destinations
- Works across recent .NET platforms
- Open source on GitHub
Ratings & Reviews
No ratings yet
Be the first to rate Serilog.
People also visit
Serilog FAQ
What is Serilog?
A logging library for .NET. It records diagnostic logs as structured events, so you can search and sort on the values, not just read text.
How do I write a log?
Call log.Information with a message template and its values, as the site's example shows. Named parameters are stored as properties on the event.
Where does the output go?
To files, the console and other destinations, through sinks. The console sink is included with Serilog, according to the site.
Is it free?
Yes. Serilog is open source, and the project is on GitHub.
What are the best Serilog alternatives?
Popular alternatives to Serilog include Loggy, Rootprint and Spikelog. See all Serilog alternatives









