Re: [log4perl-devel] Can the DBIAppender Work in Multithread?

2011-04-24 Thread Mike Schilli
On Thu, 14 Apr 2011, Nan Cui wrote: When my code tried to create new threads, the logger in the sub-thread body threw out exception like this: thread failed to start: DBD::Oracle::db prepare failed: handle 2 is owned by thread 83e0008 not current thread 8973c18 (handles can't be shared

[log4perl-devel] Can the DBIAppender Work in Multithread?

2011-04-14 Thread Nan Cui
Hi Gurus, I'm trying to get help from you as I'm facing a problem while trying to use the DBIAppender in multithreading code. When my code tried to create new threads, the logger in the sub-thread body threw out exception like this: thread failed to start: DBD::Oracle::db prepare failed: handle

Re: [log4perl-devel] Can the DBIAppender Work in Multithread?

2011-04-14 Thread Mike Schilli
On Thu, 14 Apr 2011, Nan Cui wrote: I tried to share the logger, but it came out with another error saying (in cleanup) Can't call method FIRSTKEY on an undefined value at . /Log/Log4perl/Logger.pm line 90 during global destruction.. Can you post a snippet of code to reproduce this