Overview
Features
Download
Documentation
Community
Add-Ons & Services

Logging from threads doesn't work

Please post support and help requests here.

Logging from threads doesn't work

Postby mikoro » 19 Aug 2012, 12:51

Hi, if I try to log anything from a thread created with poco (a runnable class) an exception gets thrown: "cannot lock mutex".

I tried passing the main application and using its logger and I tried to create a new logger inside the thread. Logger is configured to log to the console.

Is there something I should do before trying to log from other threads?
mikoro
 
Posts: 5
Joined: 19 Aug 2012, 12:44

Re: Logging from threads doesn't work

Postby mikoro » 20 Aug 2012, 11:03

I was declaring the thread and runnable objects inline just before calling the start method. I moved the objects to class member objects and things started working. This was probably a scope issue.
mikoro
 
Posts: 5
Joined: 19 Aug 2012, 12:44


Return to Support

Who is online

Users browsing this forum: guenter and 4 guests