Configuring log4net TextBoxAppender (custom appender) via Xml file

后端 未结 7 2091

This is in followup to my question: Flexible Logging Interface...

I now want to write a custom log4net appender for a multiline TextBox, for my WinForms 2.0 applicat

7条回答
  •  伪装坚强ぢ
    2020-12-03 05:48

    The actual line that appends to the textbox should be...

    _textBox.AppendText(RenderLoggingEvent(loggingEvent));
    

    ...if you want to take advantage of a pattern layout. Otherwise, it just sends the text of the message (the default layout).

提交回复
热议问题