serilog multi-process sharing not working — .NET CORE APIs not able to write to the same error file
I have two .NET 8 CORE APIS ( API-1 & API-2), and I am trying to get them to log any error to the same file to no avail. Only one API is writting to the error file
serilog multi-process sharing not working — .NET CORE APIs not able to write to the same error file
I have two .NET 8 CORE APIS ( API-1 & API-2), and I am trying to get them to log any error to the same file to no avail. Only one API is writting to the error file
Indented JSON in console output
when using a format string like "Hello Worldn{@environment}"
and e.g. passing an anonymous object like new { A = "a", B = 1 }
, the standard output is as follows:
Serilog: Indented JSON in console output
when using a format string like "Hello Worldn{@environment}"
and e.g. passing an anonymous object like new { A = "a", B = 1 }
, the standard output is as follows:
Could not load file or assembly ‘Serilog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10’ or one of its dependencies
I’m on .net 4.8.
After upgrading from 3.1.1 to version 4.0 of Serilog, i get the error:
Serilog save properties into individual custom columns
I don’t want to use Properties column for MSSQL and want to have a single column with machine name and have it’s value in the table.
Serilog Dynamically Add New Override LogLevel for a namespace
what is the best way to add new Overrides into a configured Serilog Log>
How to log in console only when I debug the application?
I am using Serilog to log events, and I would like to write to console only when I am debbuging the application and when I am run the application in production, I would like to write to files.