"Navin Mishra" <Na**********@icn.siemens.com> wrote in message
news:uN**************@TK2MSFTNGP12.phx.gbl...
Hi,
Does someone has an example of logging in a different thread ? Native
Windows API had a mechanism to send thread message(which could be used to
send a message with log data details). Does .NET has an equivalent ?
..NET has several mechanisms you can use to communicate date between threads.
This data could certainly be logging data.
For example, you could use remoting, or a properly synchronized Queue, or
just about anything in between.
You might also write your logging code to be asynchronous, so that it's fast
enough that you don't need to explicitly use a separate thread.
John Saunders