Enterprise Library - Real Time Log Viewer

I needed application to look logs from enterprise library at real time. I didn't found any on internet so I have created one. This application is still in alpha phase and have version v0.1.0 but I am sure that can be useful to some one. I will update this application in future.

In attachment you have application and test application to generate logs.

System Requirements

  • Enterprise library 4.1
  • .Net Framework 3.5

User Manual

  • Copy "RtTraceListener.dll" and "LogViewerBase.dll" to folder where your applications .exe is located
  • For logging configuration add custom trace listener "RtTraceListener.dll"

... and that's it. Now you can start "RTLogViewer.exe" and watch logs in real time.

Advanced Settings

Basically, "RtTraceListener.dll" uses WCF to send event data. It will try to open connection to WCF service at URL ""http://localhost:5412/WcfLogListener/". You can override this settings so you can start viewer on remote machine. To do this just add additional settings in yours application config file:

        <binding name="WSHttpBinding_ILogListener" closeTimeout="00:01:00"
            openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
            bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
            maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
            messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
              maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00"
              enabled="false" />
          <security mode="Message">
            <transport clientCredentialType="Windows" proxyCredentialType="None"
                realm="" />
            <message clientCredentialType="Windows" negotiateServiceCredential="true"
                algorithmSuite="Default" establishSecurityContext="true" />
      <endpoint address="" binding="wsHttpBinding"
          bindingConfiguration="WSHttpBinding_ILogListener" contract="LogListener.ILogListener"
          <dns value="localhost" />

Of course, if you override settings in config file for "RTLogViewer.exe", you can set different bindings and/or address.

Bugs and Features

If you found any bug or you have any question regarding this software you can contact me on mijalko@mijalko.com

Aleksandar Mijalkovic,
Dec 27, 2011, 10:23 AM
Aleksandar Mijalkovic,
Apr 28, 2010, 2:23 PM