Click here to Skip to main content
15,896,063 members
Articles / Programming Languages / C#

How to create an SMTP Trace Listener

Rate me:
Please Sign up or sign in to vote.
4.67/5 (6 votes)
28 Jan 20034 min read 101.9K   947   35  
This article describes how to create an SMTP Trace Listener for use with .NET diagnostics
<configuration>
	<appSettings>
		<add key="ConnectionString" value="Data Source=localhost;uid=sa;pwd=;Initial Catalog=TraceStore" />
		<add key="MaximumRequests" value="2" />
	</appSettings>

 <system.diagnostics>
  <trace autoflush="true" indentsize="2">
   <listeners>
    <add	name="DBTL"
			type="CustomTraceListeners.DatabaseTraceListener,CustomTraceListeners"/>	
   </listeners>
  </trace>
 </system.diagnostics>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
Software developer for 9 years. Likes .NET and C#.

Comments and Discussions