|
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 -----Original Message----- On Apr 19, 2005, at 8:56 AM, > > 3) > > I can’t call the following methods, I get compiled errors: > #define LOG4CXX_DEBUG(logger, msg) ... > #define LOG4CXX_INFO(logger, msg) ... > #define LOG4CXX_WARN(logger, msg) ... > #define LOG4CXX_ERROR(logger, msg) ... > #define LOG4CXX_FATAL(logger, msg) ... > > Instead, I have to call the Logger methods directly. > Could you provide sample code and the specific error messages that you are getting? Can you compile the sample applications? |
- Lots of user issues Thierry Lam
- Re: Lots of user issues Curt Arnold
- Re: Lots of user issues Thierry Lam
- Re: Lots of user issues Curt Arnold
- RE: Lots of user issues Thierry Lam
