Winify
/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); |