XUnitLogger will dispose of messages after test completion.

This commit is contained in:
Harrison Deng 2021-04-08 22:26:44 -05:00
parent 89b23258aa
commit ccff87fc63

View File

@ -22,8 +22,12 @@ namespace GameServiceWarden.Core.Tests
} }
public void LogMessage(string message, DateTime time, LogLevel level) public void LogMessage(string message, DateTime time, LogLevel level)
{
try
{ {
outputHelper.WriteLine($"[{time.ToShortTimeString()}][{level.ToString()}]: {message}"); outputHelper.WriteLine($"[{time.ToShortTimeString()}][{level.ToString()}]: {message}");
} }
catch (InvalidOperationException) { };
}
} }
} }