log4cxx::StringBuffer disappears after 0.9.7, so you might see that problem if you were compiling using the log4cxx 0.9.7 headers and linking against the CVS HEAD. If you are getting a linking error, then it is not a problem with the include files. The actual error messages may help.


On Apr 20, 2005, at 9:23 AM, Thierry Lam wrote:


For the LOG4CXX_INFO call, I try to hard code it in my source code like the following:

LoggerPtr logger(Logger::getLogger("TheLogger"));
char *message = "Entering FAV PPF";

if (logger->isInfoEnabled()) {
��� ::log4cxx::StringBuffer oss;
��� oss << message;
��� logger->forcedLog(::log4cxx::Level::INFO, oss.str(), __FILE__,__LINE__);
}

After compiling the above, I get lots linking error at line ::log4cxx::StringBuffer oss;
Am I missing an include somewhere?

Thanks
Thierry



Reply via email to