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

error when class containing logger is added to vector container

2008-12-08 Thread Christopher Crotty
I am building a Linux application that makes use of the log4cxx logging libraries. I'm building this app on a RHEL 5.2 under gcc4.1.2 I have several C++ classes that use the library with no problem. I started adding the LOG4CXX_<>() calls to a class that can be stored in a container class that

Re: Configuring log4cxx client.

2008-12-08 Thread Jacob L. Anawalt
On 2008-12-08 13:38, Greg Flex wrote: error C2665: 'log4cxx::PropertyConfigurator:configure':none of the 2 overloads could convert all the argument types Any ideas what might be a problem? The error sounds like you're not passing it a log4cxx::helpers::Properties or a log4cxx::File by referenc

Configuring log4cxx client.

2008-12-08 Thread Greg Flex
Hi all, I'm having problems compiling lg4cxx socket client and server under Windows XP. Here is the error: error C2665: 'log4cxx::PropertyConfigurator:configure':none of the 2 overloads could convert all the argument types Any ideas what might be a problem? I'm using MS Visual Studio 2005. Thanks G

RE: Modifying logFilePath for FileAppender using a PropertyConfigurator

2008-12-08 Thread Jean-Francois Bastien
> I am trying to configure log4cxx to write its logging messages to a log > file. The path to the log file is not known until run-time. The way that > I was going to go about doing this is by creating a > log4cxx::helpers::Properties object, setting the property and then passing > the Properties ob

Modifying logFilePath for FileAppender using a PropertyConfigurator

2008-12-08 Thread david . weber
I am trying to configure log4cxx to write its logging messages to a log file. The path to the log file is not known until run-time. The way that I was going to go about doing this is by creating a log4cxx::helpers::Properties object, setting the property and then passing the Properties object to th