serilog-aspnetcore VS serilog-extensions-logging

Compare serilog-aspnetcore vs serilog-extensions-logging and see what are their differences.

serilog-extensions-logging

Serilog provider for Microsoft.Extensions.Logging (by serilog)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
serilog-aspnetcore serilog-extensions-logging
6 3
1,253 300
2.2% 0.3%
6.0 7.1
20 days ago 24 days ago
C# C#
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

serilog-aspnetcore

Posts with mentions or reviews of serilog-aspnetcore. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-25.
  • Basics of logging in ASP NET Core
    1 project | /r/dotnet | 22 Mar 2023
    This article really doesn't provide anything the Serilog documentation doesn't cover. Additionally, the log examples are pretty poor. For instance, there's never a good reason to explicitly throw a NullReferenceException.
  • SeriLog Help
    2 projects | /r/csharp | 25 Dec 2022
    Just a simple example I found on web https://github.com/serilog/serilog-aspnetcore/blob/dev/samples/Sample/Program.cs Remove line 21-22 and you have a plain usage of serilog without asp.net
  • Loggin framework
    2 projects | /r/csharp | 21 Jun 2022
    What do you mean by "Microsoft Logger"? If this is Microsoft.Extensions.Logging, then you can just plug in Serilog and continue using standard ILogger interface.
  • Logging in ASP.NET Core 5 using Serilog
    8 projects | dev.to | 23 Aug 2021
    Serilog is a structural logging library for.NET applications that can be used for adding some cool diagnostic features to your application. This library provides a huge collection of new logging related features that are not available in the .NET built-in logging framework. It allows developers to log their messages to hundreds of different destinations including files, the console, on-premises, and cloud-based log servers, databases, and message queues. It also has native support of producing log output in plain text and JSON formats. It supports rich integration with .NET Core including ASP.NET Core. You can read the full list of features available here.
  • Log messages that appear in console?
    1 project | /r/Blazor | 25 Feb 2021
    You probably want to use a logging framework to configure where you logs end up. I recommend taking a look at serilog.
  • ASP.NET interview questions and answers for software developers
    1 project | dev.to | 25 Jan 2021
    Logging is built-in and you get access to structured logs from the ASP.NET Core host itself to your application. With tools like Serilog, you can extend your logging easily and save your logs to file, Azure, Amazon or any other output provider. You can configure verbosity and log levels via configuration (appsettings.json by default), and you can configure log levels by different categories.

serilog-extensions-logging

Posts with mentions or reviews of serilog-extensions-logging. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-01.
  • Serilog vs Microsoft Logger (ILogger)?
    1 project | /r/dotnet | 6 Jun 2023
    ILogger is an abstraction provided by Microsoft. It is not a logging framework, it's a way to standardize code to work on any logging framework. In your actual program you need to actually put the logging provider under that abstraction - Microsoft provides some defaults like a console logger, but generally you want to configure Serilog/NLog/whatever. See: https://github.com/serilog/serilog-extensions-logging
  • Serilog... why?
    6 projects | /r/dotnet | 1 Feb 2023
    Microsoft.Extensions.Logging is a pipeline that uses Microsoft.Extensions.Logging.Abstractions as its structure. It doesn't actually write logs to anywhere or anything, for that you need a provider. Microsoft offers several providers include Console Output, Windows Events, et al. Serilog is just another provider.
  • Razor custom error page - set exception message in production?
    1 project | /r/dotnet | 15 Dec 2021
    You may need to enable logging, otherwise Activity will be null as described here. Regarding your exception message, you're not doing anything with the exceptionHandlerPathFeature object. The documentation you linked to shows some type checking with the is operator to produce an error.

What are some alternatives?

When comparing serilog-aspnetcore and serilog-extensions-logging you can also consider the following projects:

serilog-sinks-email - A Serilog sink that writes events to SMTP email

attributed - Use attributes to control how complex types are logged to Serilog.

serilog-sinks-file - Write Serilog events to files in text and JSON formats, optionally rolling on time or size

Serilog.Exceptions - Log exception details and custom properties that are not output in Exception.ToString().

serilog-sinks-http - A Serilog sink sending log events over HTTP.

serilog-console-themes - Provides custom themes library for SeriLog

serilog-settings-appsettings - An <appSettings> configuration reader for Serilog

Serilog - Simple .NET logging with fully-structured events

serilog-sinks-opentelemetry - Serilog to OpenTelemetry Logs sink

.NET Runtime - .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.

serilog-sinks-console - Write log events to System.Console as text or JSON, with ANSI theme support