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