Skip to content

[.Net Core application] How to set BatchSizeLimit in appsettings.json  #126

Open
@dailyenergy

Description

@dailyenergy

by browsing through source code and other issues I have figured out that I can add Serilog Mail sink in appsettings as follows:

        "Name": "Email",
        "Args": {
          "From": "[email protected]",
          "To": "[email protected]",
          "Host": "localhost",
          "Port": 25,
          "Subject": "[{Level}] Log Email",
          "Body": "{Timestamp:yyyy-MM-dd HH:mm} [{Level}] <{MachineName}> {Message}{NewLine}{Exception}",
          "RestrictedToMinimumLevel": "Warning",

But I have no clue how to set BatchSizeLimit. Do I really need to create a custom extension for LoggerSinkConfiguration?

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