Skip to content

Commit

Permalink
Set config from code
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-lf committed Nov 12, 2024
1 parent 83e56ef commit 0ab8c66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Snowflake.Data.Tests/UnitTests/Logger/SFLoggerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0ab8c66

Please sign in to comment.