Serilog.Sinks.Postgresql.Alternative
Serilog.Sinks.Postgresql.Alternative copied to clipboard
loggerPropertyColumnOptions column value null when key name is Name
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"
}
}
Working version
"loggerPropertyColumnOptions": {
"TestColumnName": {
"Format": "{0}",
"propertyName": "TestProperty",
"WriteMethod": "Raw",
"DbType": "Text"
}
}