Logging with BackgroundWorker

Topics: Logging Application Block
Oct 29, 2008 at 11:52 AM

I've implemented a solution using the logging application block. In that solution i have my main form with some logging, mainly traces, and i have a bakgroundworker to witch uses the same config/file to dome some error logging.
The problem i'm facing is: when the backgroundworker generates an error, the log of that error doesn't appear on the main log file but in another one starting with a guid.
What should i do to have the backgound worker using the same file?

Thanks in advance for your help,
Filipe Marcelino
Oct 29, 2008 at 2:06 PM
Set the LoggingHandler's UseDefaultLogger property to True.  The default value for this is False which causes it to use GUID-named files as stated here: