Click here to Skip to main content
12,350,971 members (40,297 online)
Click here to Skip to main content

Stats

78.4K views
838 downloads
77 bookmarked
Posted

A C# Central Logging Mechanism using the Observer and Singleton Patterns

, 18 Feb 2008 CPOL
A very powerful and clean way to add logging of all sorts to an application
using System;
using System.Collections.Generic;
using System.Text;

namespace LoggingSample
{
    interface ILogger
    {
        void ProcessLogMessage(string logMessage);
    }
}

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

David Catriel
Team Leader
Canada Canada
A developer that's been tinkering with computers since he first laid eyes on his buddy's Atari in the mid 80's and messed around with GWBasic and Logo. He now divides his time among his wife, kids, and evil mistress (a term lovingly [ahem...] given to his computer by the wife ...).

For more info, please see my LinkedIn profile: http://www.linkedin.com/pub/david-catriel/44/b01/382

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 18 Feb 2008
Article Copyright 2007 by David Catriel
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid