Closed nemtajo closed 3 years ago
Like in Slack sink, where there is support for minimum logging level, for example:
loggerConfiguration .WriteTo.Slack(slackChannel, restrictedToMinimumLevel: LogEventLevel.Error) .WriteTo.Discord(discordChannel.WebhookId, discordChannel.WebhookToken)
This commit adds the same functionality to Discord sink. Usage:
loggerConfiguration .WriteTo.Slack(slackChannel, restrictedToMinimumLevel: LogEventLevel.Error) .WriteTo.Discord(discordChannel.WebhookId, discordChannel.WebhookToken, restrictedToMinimumLevel: LogEventLevel.Error)
Hi @AblEdge thanks for merging the pull request. Could you please publish a new nuget package?
Like in Slack sink, where there is support for minimum logging level, for example:
loggerConfiguration .WriteTo.Slack(slackChannel, restrictedToMinimumLevel: LogEventLevel.Error) .WriteTo.Discord(discordChannel.WebhookId, discordChannel.WebhookToken)
This commit adds the same functionality to Discord sink. Usage:
loggerConfiguration .WriteTo.Slack(slackChannel, restrictedToMinimumLevel: LogEventLevel.Error) .WriteTo.Discord(discordChannel.WebhookId, discordChannel.WebhookToken, restrictedToMinimumLevel: LogEventLevel.Error)