Re: Link error when using Layout on MS Windows

2008-12-10 Thread Meongchul Song
endif Regards, M. Song - 메시지 원본 보낸 사람: peter.doornbosch <[EMAIL PROTECTED]> 받는 사람: Log4CXX User 보낸 시간: 2008년 12월 11일 (목요일), 2:20:42 AM 제목: Re: Link error when using Layout on MS Windows Hi, > Anytime an argument takes a LogString or a logchar*, you should use > LOG4CXX_

Re: Link error when using Layout on MS Windows

2008-12-10 Thread peter.doornbosch
Hi, Anytime an argument takes a LogString or a logchar*, you should use LOG4CXX_STR() in the same manner you'd use _T() for TCHAR*. That's valueable information. Now that i know it, i see that it is mentioned in the FAQ. However, i didn't spot it there. I suggest the following question bei

Re: Link error when using Layout on MS Windows

2008-12-09 Thread Curt Arnold
On Dec 9, 2008, at 2:44 PM, peter.doornbosch wrote: Hi, log4cxx::LoggerPtr tmpLogger( log4cxx::Logger::getLogger("SIM.TEST") ); // set logger level tmpLogger->setLevel( log4cxx::Level::getDebug() ); // set appender properties ===> log4cxx::PatternLayoutPtr layout( new log

Re: Link error when using Layout on MS Windows

2008-12-09 Thread peter.doornbosch
Hi, log4cxx::LoggerPtr tmpLogger( log4cxx::Logger::getLogger("SIM.TEST") ); // set logger level tmpLogger->setLevel( log4cxx::Level::getDebug() ); // set appender properties ===> log4cxx::PatternLayoutPtr layout( new log4cxx::PatternLayout( "%d %-5p [%l] [%c:%M] %m%n" )

Link error when using Layout on MS Windows

2008-12-08 Thread Meongchul Song
Hello, I am experiencing a link error when I am trying to add a new logger on the fly. The code snippet is shown below and it works fine on Linux. But running on MS Windows causes a link error. When I commented out two lines indicated by ===>, I don't see any link error. Changing the PatternLayo