From 0ab8c66ed24ed6d0198a4909b4d29dd062ca4581 Mon Sep 17 00:00:00 2001 From: Louie Farol Date: Tue, 12 Nov 2024 15:22:56 -0800 Subject: [PATCH] Set config from code --- Snowflake.Data.Tests/UnitTests/Logger/SFLoggerTest.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Snowflake.Data.Tests/UnitTests/Logger/SFLoggerTest.cs b/Snowflake.Data.Tests/UnitTests/Logger/SFLoggerTest.cs index 26d2010d8..0cd9ce014 100644 --- a/Snowflake.Data.Tests/UnitTests/Logger/SFLoggerTest.cs +++ b/Snowflake.Data.Tests/UnitTests/Logger/SFLoggerTest.cs @@ -172,7 +172,8 @@ public class SerilogTest : SFBaseLoggerTest public void SetUp() { var loggerSerilog = new LoggerConfiguration() - .ReadFrom.Xml("TestSerilog.Config") + .MinimumLevel.Verbose() + .WriteTo.File("test_serilog.log") .CreateLogger(); var serilogLogger = new SerilogLoggerFactory(loggerSerilog).CreateLogger("SerilogTest"); SFLoggerFactory.SetCustomLogger(serilogLogger);