Skip to content

An high-performance alternative for viewing WCF messages with SvcTraceViewer.exe. Cannot be used for other types of messages besides WCF messages.

Notifications You must be signed in to change notification settings

martijns/SvclogViewer

Repository files navigation

SvclogViewer

An high-performance alternative for viewing WCF messages with SvcTraceViewer.exe.

Cannot be used for other types of messages besides WCF messages. Note that this only reads the "MessageLogTraceRecord" elements from the logfile. An example configuration can be found below.

Installation

Binaries are available via a ClickOnce deployment on the following URL: http://martijn.tikkie.net/apps/SvclogViewer/SvclogViewer.application

Main features

screenshot

  • High-performance reading of the .svclog file
  • Quickly reload the current .svclog file
  • Drag and drop your .svclog file into the application to open it
  • Can set itself as default handler for .svclog files
  • Filter messages for certain content (case-sensitive)
  • Auto-indent the XML content (has a minor performance impact)
  • Use syntax coloring (has a bigger performance impact)
  • Save request as...

Example web.config configuration

<configuration>
  <system.diagnostics>
    <sources>
      <source name="System.ServiceModel" switchValue="Error, ActivityTracing">
        <listeners>
          <add name="messagelog" />
        </listeners>
      </source>
      <source name="System.ServiceModel.MessageLogging">
        <listeners>
          <add name="messagelog" />
        </listeners>
      </source>
    </sources>
    <sharedListeners>
      <add name="messagelog" type="System.Diagnostics.XmlWriterTraceListener" initializeData="C:\MyLogDir\MyMessageLog.svclog" traceOutputOptions="DateTime" />
    </sharedListeners>
    <trace autoflush="true" />
  </system.diagnostics>
  <system.serviceModel>
    <diagnostics>
      <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxSizeOfMessageToLog="40000000" maxMessagesToLog="-1"/>
    </diagnostics>
  </system.serviceModel>
</configuration>

Merge and adjust your configuration appropriately.

Author

Martijn Stolk (www.netripper.nl)

License

Creative Commons Attribution 3.0 Unported (CC BY 3.0) http://creativecommons.org/licenses/by/3.0/

About

An high-performance alternative for viewing WCF messages with SvcTraceViewer.exe. Cannot be used for other types of messages besides WCF messages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages