Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8056553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:44:30+00:00 2026-06-05T08:44:30+00:00

I have some .Net WCF services, for these services I have configured the app.config

  • 0

I have some .Net WCF services, for these services I have configured the app.config file to log the messages sent and received in a .svclog file which is readable by “Service Trace Viewer Tool” (SvcTraceViewer.exe) . This tool renders the log files nicely clearly showing the SOAP messages being processed.

I have to use the System.Diagnostics.XmlWriterTraceListener listener to correctly format the .svclog file to be processable by the Service Trace Viewer Tool.

The problem I have is that the .svclog file becomes too large & the Service Trace Viewer Tool becomes unusable due to slow response times.

The Service Trace Viewer Tool does provide a facility to allow a portion of the log file to be opened if the file is > 40MB in size, but this is still too slow. There appears to be no facility in the app.config file to configure the .svclog to automatically create a new file each day or when the file gets to a certain size.

There is a text log listener called Microsoft.VisualBasic.Logging.FileLogTraceListener which does support a logfilecreationschedule=”Daily” property which rolls the log file daily, however the resulting log file from this listener is difficult for an operation support person to use as the log entries are not well rendered and the large xml docs contribute to the confusion.

What is the best practice in this area, it looks like I may have to write a custom WCF log extension which seems like overkill just to deal with a lack of a log file roll feature in the built in System.Diagnostics.XmlWriterTraceListener log listener / appender.

I also experimented with a script to stop my application and rename the log files but this does not seem to be possible because on Windows the handle.exe and openfile utilities are unable to close a file opened over a network share so I can’t rename / move the old log file if someone is browsing it over a network share. Will post a separate question about that shortly.

Thanks,
Matt.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:44:32+00:00Added an answer on June 5, 2026 at 8:44 am

    You can either develop yourself or use an already existing specialized XmlWriterTraceListener or use a circular tracing log mechanism.

    There is a specialized implementation of the XmlWriterTraceListener that performs rolling log tracing on Codeproject:

    http://www.codeproject.com/Articles/30956/A-Rolling-XmlWriterTraceListener

    With circular tracing you have two files that can each store up to half of the total desired trace log data. The listener creates one file and writes to that file until it reaches the limit of half of the data size, at which point it switches to a second file. When the listener reaches the limit for the second file – it overwrites the first file with new traces.

    http://msdn.microsoft.com/en-us/library/aa395205.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a VS project used for my .NET WCF host with some simple
We have a couple of WCF services hosted in an asp.net application on IIS.
I have client-server app. Client is a .NET 4.0 app. Server is stateless WCF
I have a .NET windows service which acts as a host for some wcf.
I have a complex .NET Remoting server app that provides a couple of services.
I have created a .Net app which allows to query IIS logs of some
i have some WCF services either hosted in IIS or self-hosted in windows service.
I have some .net dll's and Exe's. I need to pass MSIL files to
We have some Microfocus Cobol.Net applications. We would like to create a dependency map
We have some legacy ASP.NET code that detects if a request is secure, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.