Create a new WCF log file after a certain size is reached

By default when you create a log file for your WCF service, this will be one file that will always grow. This makes it hard in the end to load the file in memory to check it out.

I found a nice implementation of a TraceListener that will create a new log file once a certain size is reached at http://www.codeproject.com/KB/WCF/RollingXmlWriterTraceList.aspx.

I’m using this unmodified in my current project now. Even better would be to create a new log file every day. I’ll implement this later, when I have time and I’ll adjust this post then.

Technorati Tags: ,

Advertisement

About Gaston

MCT, MCSD, MCDBA, MCSE, MS Specialist
This entry was posted in Geen categorie. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s