@@ -1,3 +1,4 @@ | |||||
using Microsoft.Extensions.Logging; | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
namespace Discord.Commands | namespace Discord.Commands | ||||
@@ -23,10 +24,7 @@ namespace Discord.Commands | |||||
/// </summary> | /// </summary> | ||||
public bool CaseSensitiveCommands { get; set; } = false; | public bool CaseSensitiveCommands { get; set; } = false; | ||||
/// <summary> | |||||
/// Gets or sets the minimum log level severity that will be sent to the <see cref="CommandService.Log"/> event. | |||||
/// </summary> | |||||
public LogSeverity LogLevel { get; set; } = LogSeverity.Info; | |||||
public ILoggerFactory LoggerFactory { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// Gets or sets whether <see cref="RunMode.Sync"/> commands should push exceptions up to the caller. | /// Gets or sets whether <see cref="RunMode.Sync"/> commands should push exceptions up to the caller. | ||||
@@ -1,3 +1,4 @@ | |||||
using Microsoft.Extensions.Logging; | |||||
using System.Reflection; | using System.Reflection; | ||||
namespace Discord | namespace Discord | ||||
@@ -123,14 +124,8 @@ namespace Discord | |||||
/// The currently set <see cref="RetryMode"/>. | /// The currently set <see cref="RetryMode"/>. | ||||
/// </returns> | /// </returns> | ||||
public RetryMode DefaultRetryMode { get; set; } = RetryMode.AlwaysRetry; | public RetryMode DefaultRetryMode { get; set; } = RetryMode.AlwaysRetry; | ||||
/// <summary> | |||||
/// Gets or sets the minimum log level severity that will be sent to the Log event. | |||||
/// </summary> | |||||
/// <returns> | |||||
/// The currently set <see cref="LogSeverity"/> for logging level. | |||||
/// </returns> | |||||
public LogSeverity LogLevel { get; set; } = LogSeverity.Info; | |||||
public ILoggerFactory LoggerFactory { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// Gets or sets whether the initial log entry should be printed. | /// Gets or sets whether the initial log entry should be printed. | ||||