Configuring simple TraceSource for logging purposes

In the previous post we saw how to use the built in Trace class for logging facilities. However the Trace class is not the latest Microsoft’s recommended way for logging your application. In this post I will try to present the quickest way of configuring TraceSource and use it for logging purposes. TraceSource class allows you to create as many trace sources as you want and fre…

By Mirek on (tags: c#, logging, .net, TraceSource, tracing, categories: code)

Simple logging with use of System.Diagnostic.Trace

Recently we have decided to replace the logging framework we used, because of its not necessary complexity and a bunch of features we did not use and even did not know anything about. The goal was to use the built in System.Diagnostic.Trace facility and cover some of basic requirements we had. Basically, all we need the logging thing should do is to properly log error with all …

By Mirek on (tags: logging, Trace, tracing, categories: code)

Elmah

Elmah stands for Error Logging Modules and Handlers. It’s a very interesting little library. There’s a pretty neat (although old) article on it by Scott Hanselman and a follow up. The usage is very simple, especially combined with  nuget – just type in and you’re basically done. If you want to have permanent storage type: But what does it store? Well, elmah catches all err…

By on (tags: logging, categories: infrastructure)