Skip to content

Commit 8ad13dc

Browse files
committed
simplify logging config
1 parent 7ce4de9 commit 8ad13dc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

backend/CrdtMerge/CrdtMergeKernel.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ public static class CrdtMergeKernel
99
public static void AddCrdtMerge(this IServiceCollection services)
1010
{
1111
services
12-
.AddLogging(builder => builder.AddConsole().AddDebug().AddConfiguration(new ConfigurationManager().AddInMemoryCollection(new Dictionary<string, string?>
13-
{
14-
["Logging:LogLevel:Microsoft.EntityFrameworkCore"] = "Warning"
15-
}).Build()));
12+
.AddLogging(builder => builder.AddConsole().AddDebug().AddFilter("Microsoft.EntityFrameworkCore", LogLevel.Warning));
1613
services.AddOptions<CrdtMergeConfig>()
1714
.BindConfiguration("SendReceiveConfig")
1815
.ValidateDataAnnotations()

0 commit comments

Comments
 (0)