public static WinFormsSinkInternal MakeJsonTextBoxSink(ITextFormatter formatter = null) { if (formatter == null) { formatter = new JsonFormatter(); } _jsonTextBoxSink = new WinFormsSinkInternal(formatter); return(_jsonTextBoxSink); }
public static WinFormsSinkInternal MakeSimpleTextBoxSink(ITextFormatter formatter = null) { if (formatter == null) { formatter = new MessageTemplateTextFormatter("{Timestamp} [{Level}] {Message} {Exception}"); } _simpleTextBoxSink = new WinFormsSinkInternal(formatter); return(_simpleTextBoxSink); }