Skip to content

Can't configure PeriodicBatching options with email sink #135

@SamWECA

Description

@SamWECA

Tried to follow the structure outlined here: #130, but can't seem to get it to only send according to the config, which is below. This is using appsettings.json.

"Serilog": { "MinimumLevel": { "Default": "Debug", "Override": { "System": "Error", "Microsoft": "Error" } }, "WriteTo": [ { "Name": "EventLog", "Args": { "restrictedToMinimumLevel": "Error", "source": "redacted" } }, { "Name": "Email", "Args": { "options": { "from": "redacted", "to": "redacted", "host": "redacted", "port": 25, "subject": "Error" }, "batchingOptions": { "batchSizeLimit": 5, "period": "00:01:00" }, "restrictedToMinimumLevel": "Error" } } ], "Enrich": [ "FromLogContext" ] }

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