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)