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

loggerPropertyColumnOptions column value null when key name is Name #75

Open nrmohan opened 3 months ago

nrmohan commented 3 months ago

The document specifies setting the log property name in "Name" key, but it only functions correctly when set to "propertyName."

the result from "ShouldCreateLoggerFromConfig" integration test

Howtouse

"loggerPropertyColumnOptions": {
    "TestColumnName": {
        "Format": "{0}",
        "Name": "TestProperty",
        "WriteMethod": "Raw",
        "DbType": "Text"
    }
}

Screenshot 2024-09-03 000444

Working version

"loggerPropertyColumnOptions": {
    "TestColumnName": {
        "Format": "{0}",
        "propertyName": "TestProperty",
        "WriteMethod": "Raw",
        "DbType": "Text"
    }
}

image