Home
Manage Your Code
Snippet: Generic Logging Class (C#)
Title: Generic Logging Class Language: C#
Description: Generic logging class from business objects. Can be easily setup to log to the application event log and/or a database. Views: 1214
Author: Kevin Shuma Date Added: 10/18/2007
Copy Code  
1using System;
2using System.Diagnostics;
3using System.Reflection;
4using System.Security.Principal;
5using System.Data;
6using System.Data.SqlClient;
7
8
9
10namespace Utilities
11{
12	/// <summary>
13	/// Provides a logging layer for applications and services.
14	/// Events can be written to the Application Event log.  Failure notices
15	/// can be sent via SMTP email.
16	/// </summary>
17	public class Logging
18	{
19		#region " Private Declarations "   ...		#endregion
26		#region " Public Members "   ...				#endregion
141		#region " Internal Static Members "   ...		#endregion
223	}
224}
225