Serilog.Sinks.Postgresql.Alternative icon indicating copy to clipboard operation
Serilog.Sinks.Postgresql.Alternative copied to clipboard

loggerPropertyColumnOptions column value null when key name is Name

Open nrmohan opened this issue 1 year ago • 0 comments

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

nrmohan avatar Sep 02 '24 18:09 nrmohan