C# - Convert unix timestamp to DateTime or DateTimeOffset
The easiest way to Convert a Unix timestamp to a DateTime or DateTimeOffset is to use the methods FromUnixTimeSeconds for seconds or FromUnixTimeMilliseconds for milliseconds. However »
The easiest way to Convert a Unix timestamp to a DateTime or DateTimeOffset is to use the methods FromUnixTimeSeconds for seconds or FromUnixTimeMilliseconds for milliseconds. However »
This post describes how to make a checkbox in Google sheets. All of the examples can be found in a sheet here. The easiest way is »
Usually I would preach quality over quantity, but you always need some quantity! This is post number 400 on my blog which I started late December »
The secret to changing the log level at runtime in your application is the LoggingLevelSwitch. This can be applied in two places, one is the MinimumLevel »
This post describes how to combine serilog's property enrichment with ASP.Net's middleware and pipeline to enrich all logs in a request with properties. A full »
TLDR: You are likely looking for setting up an outputTemplate in your logger configuration: Log.Logger = loggerConfiguration .Enrich.FromLogContext() //remember this! .WriteTo .Console(outputTemplate: "[{Timestamp:HH: »
This post describes and demonstrates how to enrich your serilog log events with your own arbitrary properties. The first part will be on enriching with properties »
It took me much longer to realize a solution to this problem than I want to admit. I had something like the following in my code »
This post describes how to exclude certain log entries based on their http path when using Serilog together with UseSerilogRequestLogging. I recently had this issue where »
This post describes how to exclude certain log entries based on properties using Serilog. We will use the following setup for this post: //More above but »