1
Vote

Multiple log entries send over same connection lost.

description

The simple fix would be to change the Sample Client Configuration from
<target name="TcpOutlet" xsi:type="NLogViewer" address="tcp://localhost:4505"/>
to
<target name="TcpOutlet" xsi:type="NLogViewer" address="tcp://localhost:4505" KeepConnection="false" />

Another option would be to split up the log entries and parse them 1 at a time. The patches for this approach are attached.

file attachments

comments

DewJunkie wrote May 7, 2016 at 5:03 PM

2nd patch file

wrote May 13, 2016 at 8:41 PM

DewJunkie wrote May 13, 2016 at 8:41 PM

Updated tcpreceiver patch.
I am not sure if I am/was missing something in the Start method. The while loop was running as long as the receiver was listening. Which was causing high cpu usage.
Seems to be working much better now.