Hi,
When adding an entry in the loggerPropertyColumnOptions in the WriteTo Config Section, the retentionTime is not used.
The retentionTime field is not passed to the GetOptions method.
|
var optionsLocal2 = GetOptions( |
example config:
"Serilog": {
"WriteTo": [
{
"Name": "PostgreSQL",
"Args": {
"retentionTime": "0.00:01:00",
"loggerPropertyColumnOptions": {
"TestColumnName": {
"Format": "{0}",
"Name": "TestProperty",
"WriteMethod": "Raw",
"DbType": "Text"
}
}
}
}
]
}
Workaround:
Using the AuditTo configuration uses the retentionTime setting.
Hi,
When adding an entry in the
loggerPropertyColumnOptionsin the WriteTo Config Section, theretentionTimeis not used.The
retentionTimefield is not passed to theGetOptionsmethod.Serilog.Sinks.Postgresql.Alternative/src/Serilog.Sinks.Postgresql.Alternative/LoggerConfigurationPostgreSQLExtensions.cs
Line 257 in 06d4f4b
example config:
Workaround:
Using the AuditTo configuration uses the retentionTime setting.