Why don't you simply create a singleton instance of a class that will "manage" log4cxx for you?
Then you can just query the singleton to see if it is initialized or not... or even just call the "init()" method of the singleton in all your DLL's... so the init will only happen once. Renny Koshy President & CEO -------------------------------------------- Rubix Information Technologies, Inc. www.rubixinfotech.com yaohua xiao <bentry...@gmail.com> 04/21/2009 09:29 PM Please respond to "Log4CXX User" <log4cxx-user@logging.apache.org> To log4cxx-user <log4cxx-user@logging.apache.org> cc Subject How can I know log4cxx is initialized? Hi all, I am new to log4cxx and have a mutiple dll project to use log4cxx for some logging task. My project has 3 dll modules: a.dll, b.dll, c.dll , all dlls need logging. log4cxx needs some initialize code such like BasicConfigurator::configure() , load properties files, to prepare the logger. Because i use import lib to load the dlls, i don't know which dll will load first. So I want to determine if log4cxx is initialized when I call log4cxx in each dll. Is there any api can tell user is log4cxx initialized? Thanks.