serilog-contrib / Serilog.Sinks.Postgresql.Alternative

Serilog.Sinks.Postgresql.Alternative is a library to save logging information from https://github.com/serilog/serilog to https://www.postgresql.org/.
MIT License
67 stars 13 forks source link

Unable to load system.runtime 6.0 #49

Closed bsubramaniam-mpr closed 2 years ago

bsubramaniam-mpr commented 2 years ago

in dot net core 3.1 project receiving the below error. Do we need to use a different version?

'Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)'

config file

"WriteTo": [
      {
        "Name": "PostgreSQL",
        "Args": {
          "connectionString": "LogDatabase-PostGres",
          "tableName": "Logs",
          "schemaName": null,
          "needAutoCreateTable": true,
          "loggerColumnOptions": {
            "Id": "IdAutoIncrement",
            "TimeStamp": "Timestamp",
            "LogEvent": "LogEvent"
          },
          "loggerPropertyColumnOptions": {
            "TestColumnName": {
              "Name": "TestProperty",
              "Format": "{0}",
              "WriteMethod": "Raw",
              "DbType": "Text"
            }
          },
          "period": "0.00:00:30",
          "batchSizeLimit": 1
          //"removeStandardColumns": [ "MessageTemplate", "Properties", "TimeStampUTC", "ProcessName", "ThreadId", "CallerName" ]
        }
      }
    ]
bsubramaniam-mpr commented 2 years ago

can anyone help on this

SeppPenner commented 2 years ago

Can you give one of the versions before a try? I will need to investigate further...

bsubramaniam-mpr commented 2 years ago

Hey i tried 3.3.12 and it worked fine.