File tree 2 files changed +6
-2
lines changed
src/MacroBot/StartupConfig
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 5
5
<ItemGroup >
6
6
<PackageVersion Include =" AutoMapper" Version =" 12.0.1" />
7
7
<PackageVersion Include =" AutoMapper.Extensions.Microsoft.DependencyInjection" Version =" 12.0.1" />
8
- <PackageVersion Include =" Discord.Net" Version =" 3.11 .0" />
8
+ <PackageVersion Include =" Discord.Net" Version =" 3.12 .0" />
9
9
<PackageVersion Include =" Evolve" Version =" 3.2.0" />
10
10
<PackageVersion Include =" JetBrains.Annotations" Version =" 2023.2.0" />
11
11
<PackageVersion Include =" Microsoft.AspNetCore.Http" Version =" 2.2.2" />
Original file line number Diff line number Diff line change 2
2
using MacroBot . Core . Runtime ;
3
3
using Serilog ;
4
4
using Serilog . Events ;
5
+ using Serilog . Filters ;
5
6
using Serilog . Sinks . SystemConsole . Themes ;
6
7
7
8
namespace MacroBot . StartupConfig ;
@@ -17,7 +18,10 @@ public static IHostBuilder ConfigureSerilog(this IHostBuilder hostBuilder)
17
18
configuration
18
19
. MinimumLevel . Override ( "Microsoft.EntityFrameworkCore" , LogEventLevel . Warning )
19
20
. MinimumLevel . Override ( "System.Net.Http.HttpClient" , LogEventLevel . Warning )
20
- . WriteTo . DiscordSink ( services ) ;
21
+ . WriteTo . Logger ( lc =>
22
+ lc . Filter . ByIncludingOnly ( Matching . FromSource ( "MacroBot" ) ) . WriteTo . DiscordSink ( services ) )
23
+ . WriteTo . Logger ( lc =>
24
+ lc . Filter . ByIncludingOnly ( e => e . Level >= LogEventLevel . Warning ) . WriteTo . DiscordSink ( services ) ) ;
21
25
}
22
26
else
23
27
{
You can’t perform that action at this time.
0 commit comments