You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by ca...@apache.org on 2005/02/17 22:32:47 UTC
cvs commit: logging-log4cxx/src level.cpp
carnold 2005/02/17 13:32:47
Modified: src level.cpp
Log:
LOGCXX-4: Static initialization of Level::DEBUG could occur before APR initialization
Revision Changes Path
1.12 +2 -0 logging-log4cxx/src/level.cpp
Index: level.cpp
===================================================================
RCS file: /home/cvs/logging-log4cxx/src/level.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- level.cpp 15 Feb 2005 23:56:01 -0000 1.11
+++ level.cpp 17 Feb 2005 21:32:47 -0000 1.12
@@ -17,6 +17,7 @@
#include <log4cxx/level.h>
#include <log4cxx/helpers/stringhelper.h>
#include <log4cxx/helpers/transcoder.h>
+#include <log4cxx/helpers/aprinitializer.h>
using namespace log4cxx;
using namespace log4cxx::helpers;
@@ -64,6 +65,7 @@
const logchar* name, int syslogEquivalent)
: level(level), name(name), syslogEquivalent(syslogEquivalent)
{
+ APRInitializer::initialize();
}