serilog-extensions-logging
Serilog.Exceptions
Our great sponsors
serilog-extensions-logging | Serilog.Exceptions | |
---|---|---|
3 | 5 | |
302 | 478 | |
1.0% | - | |
7.0 | 6.1 | |
27 days ago | 7 days ago | |
C# | C# | |
Apache License 2.0 | MIT License |
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-extensions-logging
-
Serilog vs Microsoft Logger (ILogger)?
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?
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?
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.
Serilog.Exceptions
-
How can I fix logger maximum destructuring reached error when using Serilog C#?
You might also wanna check out Serilog.Exceptions if not already using it. I think that they have some examples of how you could intercept these yourself.
-
Serilog... why?
So when we found this out, we rapidly rolled out Serilog.Exceptions that adds this in, and things were better
-
Three NuGet packages to improve exceptions in .NET/C#
If you're using Serilog, add in Serilog.Exceptions, because Serilog does structure Exceptions by default. This package does it.
-
What are important exception properties that you should log? So it's easy to debug later
Serilog with Serilog.Exceptions. All public properties as structured data. This is the way.
-
My Logging Best Practices
I would say that having spent time ensuring that exceptions are properly detailed, and those details properly logged (1), this is correct, but is not an invariant that makes exceptions useless.
1) shout out to https://github.com/RehanSaeed/Serilog.Exceptions
What are some alternatives?
serilog-aspnetcore - Serilog integration for ASP.NET Core
Exceptionless - Exceptionless application
attributed - Use attributes to control how complex types are logged to Serilog.
trace-context-w3c - W3C Trace Context purpose of and what kind of problem it came to solve.
serilog-console-themes - Provides custom themes library for SeriLog
log15 - Structured, composable logging for Go
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.
DotNet.ApiRest.BasicTemplate - Build an simple API Rest project using best practices, professional componentes: Swagger, Serilog, Entity Framewokr, Authentication (AAD), Azure Aplication Insight, Docker, Kubernetes, Helm, Azure Pipelines and much more.
ASP.NET MVC Boilerplate Framework - .NET Core Extensions and Helper NuGet packages.
Serilog.Enrichers.Sensitive - A Serilog LogEvent enricher that masks sensitive data