serilog-extensions-logging
serilog-console-themes
Our great sponsors
serilog-extensions-logging | serilog-console-themes | |
---|---|---|
3 | 1 | |
302 | 0 | |
1.0% | - | |
7.0 | 10.0 | |
27 days ago | about 1 year ago | |
C# | C# | |
Apache License 2.0 | - |
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-console-themes
-
SeriLog color themes
Some developers may want to change color themes as mentioned but don’t necessarily have the skill and or the time, with that said I published my NuGet package with full source code. If none of the themes work for a developer, clone the source code, make changes (at this stage it’s easy), compile and place in a local NuGet package or when needed add a reference to the compiled code in a project.
What are some alternatives?
serilog-aspnetcore - Serilog integration for ASP.NET Core
toast-notifications - Toast notifications for ASP.NET Core, Razor Pages and Window Forms
attributed - Use attributes to control how complex types are logged to Serilog.
serilog-sinks-console - Write log events to System.Console as text or JSON, with ANSI theme support
Serilog.Exceptions - Log exception details and custom properties that are not output in Exception.ToString().
razor-pages-style-isolation - Implement CSS Isolation in Razor Pages
Serilog - Simple .NET logging with fully-structured events
SmartBreadcrumbs - A utility library for ASP.NET Core (both MVC and Razor Pages) websites to easily add and customize breadcrumbs.
.NET Runtime - .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
razor-pages-checkboxes - Razor pages created checkboxes which are accessible using aria attributes