File tree 2 files changed +5
-12
lines changed
2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change
1
+ using Microsoft . Extensions . Logging ;
1
2
using System . Collections . Generic ;
2
3
3
4
namespace Discord . Commands
@@ -23,10 +24,7 @@ public class CommandServiceConfig
23
24
/// </summary>
24
25
public bool CaseSensitiveCommands { get ; set ; } = false ;
25
26
26
- /// <summary>
27
- /// Gets or sets the minimum log level severity that will be sent to the <see cref="CommandService.Log"/> event.
28
- /// </summary>
29
- public LogSeverity LogLevel { get ; set ; } = LogSeverity . Info ;
27
+ public ILoggerFactory LoggerFactory { get ; set ; }
30
28
31
29
/// <summary>
32
30
/// Gets or sets whether <see cref="RunMode.Sync"/> commands should push exceptions up to the caller.
Original file line number Diff line number Diff line change
1
+ using Microsoft . Extensions . Logging ;
1
2
using System . Reflection ;
2
3
3
4
namespace Discord
@@ -123,14 +124,8 @@ public class DiscordConfig
123
124
/// The currently set <see cref="RetryMode"/>.
124
125
/// </returns>
125
126
public RetryMode DefaultRetryMode { get ; set ; } = RetryMode . AlwaysRetry ;
126
-
127
- /// <summary>
128
- /// Gets or sets the minimum log level severity that will be sent to the Log event.
129
- /// </summary>
130
- /// <returns>
131
- /// The currently set <see cref="LogSeverity"/> for logging level.
132
- /// </returns>
133
- public LogSeverity LogLevel { get ; set ; } = LogSeverity . Info ;
127
+
128
+ public ILoggerFactory LoggerFactory { get ; set ; }
134
129
135
130
/// <summary>
136
131
/// Gets or sets whether the initial log entry should be printed.
You can’t perform that action at this time.
0 commit comments