XUnitLogger will dispose of messages after test completion.
This commit is contained in:
parent
89b23258aa
commit
ccff87fc63
@ -22,8 +22,12 @@ namespace GameServiceWarden.Core.Tests
|
||||
}
|
||||
|
||||
public void LogMessage(string message, DateTime time, LogLevel level)
|
||||
{
|
||||
try
|
||||
{
|
||||
outputHelper.WriteLine($"[{time.ToShortTimeString()}][{level.ToString()}]: {message}");
|
||||
}
|
||||
catch (InvalidOperationException) { };
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user