Multi-threads Form Log Manager

This simple C# application shows how you can create a visual log manager for multi-threading applications using a different window for each thread that you want to trace, so easily you will be able to see what is doing each thread.

The best point of this log manager is that you won’t need to add any extra logic in your multi-threading application to manage the corresponding windows of each thread. Simply, you only have to do something as easy like this:


public   void YourMethodInYourApplication()
     MultithreadsFormLogManager.Instace.WriteMessage(“my message from this thread”);

Automatically, if this thread already has a windows, a new message will be added to it; in other way, a new windows will be created with this first message.

To test it, I have created a Multi-threading Ping application, which will lunch a thread for each ping request that you want to do. So, you will see on independents windows how each ping request is working:

In my case, I applied this tool to Microsoft Dynamics CRM. It was very useful to test a multi-threading application which managed a organisation for each thread. So, I could see what was happening in each organisation.

You can download the code from

About Ramon Tebar

Software Engineer specialised on Microsoft Technologies with experience in large projects for different industrial sectors as developer, consultant and architect. I enjoy designing and developing software applications, it is my job and one of my hobbies. I’m interested in design patterns, new technologies and best practices. Making those part of the ALM process is a great challenge. During the last years, I have specialised in Microsoft Dynamics CRM (now Dynamics 365). I customise and extend the platform to provide tailored solutions and integrations based on service-oriented architectures and messages queuing. Motivated by community events and contributor in blogs, technical books, open source projects and forums, I have been awarded Microsoft Most Valuable Professional (MVP) on Dynamics 365 (CRM) since 2012.

Posted on April 21, 2009, in Uncategorized. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: