diff --git a/src/Discord.Net.Commands/CommandServiceConfig.cs b/src/Discord.Net.Commands/CommandServiceConfig.cs index 3c62063c8..7b6547631 100644 --- a/src/Discord.Net.Commands/CommandServiceConfig.cs +++ b/src/Discord.Net.Commands/CommandServiceConfig.cs @@ -1,3 +1,4 @@ +using Microsoft.Extensions.Logging; using System.Collections.Generic; namespace Discord.Commands @@ -23,10 +24,7 @@ namespace Discord.Commands /// public bool CaseSensitiveCommands { get; set; } = false; - /// - /// Gets or sets the minimum log level severity that will be sent to the event. - /// - public LogSeverity LogLevel { get; set; } = LogSeverity.Info; + public ILoggerFactory LoggerFactory { get; set; } /// /// Gets or sets whether commands should push exceptions up to the caller. diff --git a/src/Discord.Net.Core/DiscordConfig.cs b/src/Discord.Net.Core/DiscordConfig.cs index 429ad7b0c..abda4a297 100644 --- a/src/Discord.Net.Core/DiscordConfig.cs +++ b/src/Discord.Net.Core/DiscordConfig.cs @@ -1,3 +1,4 @@ +using Microsoft.Extensions.Logging; using System.Reflection; namespace Discord @@ -123,14 +124,8 @@ namespace Discord /// The currently set . /// public RetryMode DefaultRetryMode { get; set; } = RetryMode.AlwaysRetry; - - /// - /// Gets or sets the minimum log level severity that will be sent to the Log event. - /// - /// - /// The currently set for logging level. - /// - public LogSeverity LogLevel { get; set; } = LogSeverity.Info; + + public ILoggerFactory LoggerFactory { get; set; } /// /// Gets or sets whether the initial log entry should be printed.