Re: link problem

2005-04-14 Thread Grzegorz Swiatek
Hi, please define LOG4CXX_STATIC in your project settings for the C/C++ options. Best Regards, Grzegorz [EMAIL PROTECTED] wrote: Hi all, i'm using for the first time this logging library and i have a link problem : i'm using VC++ 6.0. this is the code i'm using: #include "log4cxx/logger.h" #inclu

ROling file appender not working?

2005-04-14 Thread bruce_np
I tried now the last version which worked under windows (31.3.) It seems that the roling file appender is not working. Is there a way around this? Or at least a way to specify a maximum file size in a normal appender? best regards ML

Not logging message

2005-04-14 Thread Staffan Vilcans
I have a strange problem with the logging using log4cxx 0.9.7 under Fedora. When I use static text, i.e. LOG4CXX_INFO(iLogger, "message"); it works like I would expect. But if I instead use the stream like ::log4cxx::StringBuffer oss; oss << "The number is " << v; LOG4CXX_INFO(iLogger, oss.str());

Re: link problem

2005-04-14 Thread Max Signori
I'm sorry i still got a link problem: i've put LOG4CXX_STATIC in my preprocessor definitions under the C/C++ options but i get more errors. Without this setting i obtained 3 unresolved externals, now i got 9. Maybe i'm forgetting something? Do i have to put somewhere library log4cxxS.lib (stati

Error using SMTPAppender

2005-04-14 Thread Graf Martin
Hi   I have no idea what’s the problem in the following small program. I tried to use a SMTPAppender.   Anyone a tip?    Thanks a lot !!     /* Cpp Test Code */ LoggerPtr logger2 = Logger::getRootLogger(); DOMConfigurator::configure("*.xml");     logger2->warn("warn message