Re: multiples instances of log4cxx

2013-01-23 Thread Thorsten Schöning
Guten Tag Oscar Pernas, am Mittwoch, 23. Januar 2013 um 13:29 schrieben Sie: > What I'm doing wrong? I think that Im linking with the correct dinamic > library... Did you read my quoted link? The behavior you see is intended on dynamic link libraries. Mit freundlichen Grüßen, Thorsten Schöning

Re: multiples instances of log4cxx

2013-01-23 Thread Oscar Pernas
Hi Thorsten, I was looking into this problem again: My process is call MyAI. MyAi is loading its instance of log4cxx like this: static log4cxx::LoggerPtr loggerMyAI; LoggerPtr MyAI::loggerMyAI(Logger::getLogger("MyAI")); PropertyConfigurator::configure("log4jMyAI.properties"); After this config

Re: multiples instances of log4cxx

2012-10-24 Thread Thorsten Schöning
Guten Tag Oscar Pernas, am Mittwoch, 24. Oktober 2012 um 16:14 schrieben Sie: > Is log4cxx a singleton? could I have different instances of log4cxx in > the same process? This should answer your question with no on dynamic linking like yours. http://mail-archives.apache.org/mod_mbox/logging-log4

multiples instances of log4cxx

2012-10-24 Thread Oscar Pernas
Hi all, I have a DLL (with vs2008) that uses log4cxx. All is working ok reading configuration file log4AI.properties. I have a process that loads this DLL and uses log4cxx too. This process is configured to read a properties file log4jSM.properties. When the process starts, the firsts traces are