Exemple #1
0
        public static WinFormsSinkInternal MakeJsonTextBoxSink(ITextFormatter formatter = null)
        {
            if (formatter == null)
            {
                formatter = new JsonFormatter();
            }

            _jsonTextBoxSink = new WinFormsSinkInternal(formatter);

            return(_jsonTextBoxSink);
        }
Exemple #2
0
        public static WinFormsSinkInternal MakeSimpleTextBoxSink(ITextFormatter formatter = null)
        {
            if (formatter == null)
            {
                formatter = new MessageTemplateTextFormatter("{Timestamp} [{Level}] {Message} {Exception}");
            }

            _simpleTextBoxSink = new WinFormsSinkInternal(formatter);

            return(_simpleTextBoxSink);
        }