Testing the Output of a Logger – xUnit .NET Core 3.1
I’m trying to work out how to test that a message and log level are correct in my Serilog logging library.
I’m trying to work out how to test that a message and log level are correct in my Serilog logging library.
I recently added logging to my ASP.Net Core project. Currently the log writes to a .txt file in this format: