Skip to content

Commit

Permalink
Merge pull request #112 from DataDog/Issue-32
Browse files Browse the repository at this point in the history
Rename minimum log level parameter
  • Loading branch information
jszwedko authored May 9, 2024
2 parents b485d1d + 59f32d6 commit 1cf5910
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static class LoggerConfigurationDatadogExtensions
/// <param name="tags">Custom tags.</param>
/// <param name="configuration">The Datadog logs client configuration.</param>
/// <param name="configurationSection">A config section defining the datadog configuration.</param>
/// <param name="logLevel">The minimum log level for the sink.</param>
/// <param name="restrictedToMinimumLevel">The minimum level for this sink</param>
/// <param name="batchSizeLimit">The maximum number of events to emit in a single batch.</param>
/// <param name="batchPeriod">The time to wait before emitting a new event batch.</param>
/// <param name="queueLimit">
Expand All @@ -52,7 +52,7 @@ public static LoggerConfiguration DatadogLogs(
string[] tags = null,
DatadogConfiguration configuration = null,
IConfigurationSection configurationSection = null,
LogEventLevel logLevel = LevelAlias.Minimum,
LogEventLevel restrictedToMinimumLevel = LevelAlias.Minimum,
int? batchSizeLimit = null,
TimeSpan? batchPeriod = null,
int? queueLimit = null,
Expand All @@ -74,7 +74,7 @@ public static LoggerConfiguration DatadogLogs(
var config = ApplyMicrosoftExtensionsConfiguration.ConfigureDatadogConfiguration(configuration, configurationSection);
var sink = DatadogSink.Create(apiKey, source, service, host, tags, config, batchSizeLimit, batchPeriod, queueLimit, exceptionHandler, detectTCPDisconnection, client, formatter, maxMessageSize);

return loggerConfiguration.Sink(sink, logLevel);
return loggerConfiguration.Sink(sink, restrictedToMinimumLevel);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public interface IDatadogClient
/// <summary>
/// Cleanup existing resources.
/// </summary>
void Close();
void Close();
}
}

0 comments on commit 1cf5910

Please sign in to comment.