I'm using SerlLog with SQL Server and after configuration I have the following table in SQL Server:
I want to add data to the columns Message
LikeExpression
and other columns for occurrence.
I tried the following code
Log.ForContext("Message", "Some Message")
.ForContext("LikeExpression", ex.Message)
.Fatal("{StackTrace}", ex.Message, ex.StackTrace);
and this adds the following data to the table
I must have the Some Message
string in Message column but it does not work any help please?