When compiled using the Forte 6.0 compiler on Sun, we get a crash at runtime with the property configurator. The patch below removes the problem. I believe it to be a compiler problem, but it's a show-stopper for anyone using it.

--- log4cxx-0.9.7/src/propertyconfigurator.cpp 2004-05-11 00:37:54.000000000 +1200
+++ log4cxx-0.9.7-patched/src/propertyconfigurator.cpp 2004-09-28 21:56:46.000000000 +1200
@@ -314,9 +314,10 @@
logger->setLevel(OptionConverter::toLevel(levelStr, Level::DEBUG));
}


-               LogLog::debug(_T("Category ") + loggerName +
-                       _T(" set to ") + ((logger->getLevel() != 0 )?
-                       logger->getLevel()->toString() : _T("null")));
+// This crashes when copiled with the Sun CC (aka Forte) compiler
+//             LogLog::debug(_T("Category ") + loggerName +
+//                     _T(" set to ") + ((logger->getLevel() != 0 )?
+//                     logger->getLevel()->toString() : _T("null")));
       }

       // Begin by removing all existing appenders.



Reply via email to