Skip to content

ReadFromConfiguration retentionTime ignored when setting loggerPropertyColumnOptions #88

@dorfmann

Description

@dorfmann

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.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions