Winify

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 61  →  ?path2? @ 67
/trunk/Winify/Utilities/LogMemorySink.cs
@@ -6,7 +6,7 @@
using Serilog.Formatting;
using Serilog.Formatting.Display;
 
namespace Winify
namespace Winify.Utilities
{
public class LogMemorySink : ILogEventSink
{
@@ -18,7 +18,10 @@
 
public void Emit(LogEvent logEvent)
{
if (logEvent == null) throw new ArgumentNullException(nameof(logEvent));
if (logEvent == null)
{
throw new ArgumentNullException(nameof(logEvent));
}
 
using var stringWriter = new StringWriter();
_textFormatter.Format(logEvent, stringWriter);