diff --git a/Serilog.Sinks.Slack/SlackLoggerConfigurationExtensions.cs b/Serilog.Sinks.Slack/SlackLoggerConfigurationExtensions.cs
index 77f4f8c..732bff4 100644
--- a/Serilog.Sinks.Slack/SlackLoggerConfigurationExtensions.cs
+++ b/Serilog.Sinks.Slack/SlackLoggerConfigurationExtensions.cs
@@ -43,6 +43,7 @@ public static class SlackLoggerConfigurationExtensions
/// If specified, only properties that are not in this list are logged.
/// The date and time format for timestamps in messages.
/// The maximum number of events to hold in the sink's internal queue, or null for an unbounded queue. The default is 100000.
+ /// The minimum Log Level to log for this sink
/// Instance of object.
public static LoggerConfiguration Slack(
this LoggerSinkConfiguration loggerSinkConfiguration,
@@ -63,7 +64,8 @@ public static LoggerConfiguration Slack(
List propertyAllowList = null,
List propertyDenyList = null,
string timestampFormat = null,
- int? queueLimit = 100000)
+ int? queueLimit = 100000,
+ LogEventLevel minimumLogEventLevel = LogEventLevel.Verbose)
{
var formatter = new MessageTemplateTextFormatter(outputTemplate, formatProvider);
@@ -84,7 +86,8 @@ public static LoggerConfiguration Slack(
propertyAllowList,
propertyDenyList,
timestampFormat,
- queueLimit);
+ queueLimit,
+ minimumLogEventLevel);
}
///
@@ -117,6 +120,7 @@ public static LoggerConfiguration Slack(
/// If specified, only properties that are not in this list are logged.
/// The date and time format for timestamps in messages.
/// The maximum number of events to hold in the sink's internal queue, or null for an unbounded queue. The default is 100000.
+ /// The minimum Log Level to log for this sink
/// Instance of object.
public static LoggerConfiguration Slack(
this LoggerSinkConfiguration loggerSinkConfiguration,
@@ -136,7 +140,8 @@ public static LoggerConfiguration Slack(
List propertyAllowList = null,
List propertyDenyList = null,
string timestampFormat = null,
- int? queueLimit = 100000)
+ int? queueLimit = 100000,
+ LogEventLevel minimumLogEventLevel = LogEventLevel.Verbose)
{
var slackSinkOptions = new SlackSinkOptions
{
@@ -152,7 +157,8 @@ public static LoggerConfiguration Slack(
PropertyDenyList = propertyDenyList,
ShowExceptionAttachments = showExceptionAttachments,
TimestampFormat = timestampFormat,
- QueueLimit = queueLimit
+ QueueLimit = queueLimit,
+ MinimumLogEventLevel = minimumLogEventLevel
};
if (batchSizeLimit.HasValue)