log4cxx and threads

2014-05-31 Thread Nandan S
I have used log4cxx static library in my threaded application and facing issues with respect to logging. I would like to log messages from each thread in a different file. To achieve this, i am calling log4cxx setfilename() method in each thread. But each thread is not logging in it's specific fi

Re: Clearing All Loggers from the Logger Repository.

2014-04-10 Thread Nandan S
>> When my software is running, i delete one of the logger's. >You still didn't explain how exactly you are doing that because there >don't seem to be an API do delete loggers. Loggers will be deleted/added from configuration file manually. Changes configuration will be used only aft

Re: Clearing All Loggers from the Logger Repository.

2014-04-09 Thread Nandan S
Hi Alex, Our software is based on software component architecture and each component will have it's own logger along with default root logger. If the logger with component name exists, it uses the component logger for logging and if it does not exist, then the component will use root logger.

clearing Loggers from logger repository

2014-04-03 Thread Nandan S
I’m creating an application that requires the above feature. In a loop, executing following code 1) I’m reading xml configuration file. 2) Logging messages after reading the configuration file 3) Also reading the Logger Repository to check all the loggers and print the same on the

Clearing All Loggers from the Logger Repository.

2014-04-01 Thread Nandan S
Hi, 1) How do i clear the Loggers from the logger Repository ? In the xml configuration file, i have :- and if i use the below code logger = Logger::

Re: how to use errorHandler

2014-02-25 Thread Nandan S
>Which version are you using? 0.10.0 has been released 2008-04-03, but >there were changes afterwards to fallbackerrorhandler.h and other >files regarding error handling afterwards. Additionally, there's a >test called errorhandlertestcase which seems to successfully use a >configuration with F

how to use errorHandler

2014-02-25 Thread Nandan S
Hi, I getting following error while using the errorHandler. Request help in proper usage of errorHandler. - log4cxx: Could not instantiate class [org.apache.log4j.varia.FallbackErrorHandler]. log4cxx: Class

how to redirect log4cxx console messages

2014-02-24 Thread Nandan S
Hi , If there is any error in configuration file (either xml or properties file), log4cxx displays the error in console. eg , i modified my program and xml configuration file to display following two errors log4cxx: No appender could be found for logger (functionA). log4cxx: Please initialize t

how to retain values using configureAndWatch()

2014-02-20 Thread Nandan S
Hi, i use DOMConfigurator::configureAndWatch(configFile,delay) method to check for any configuration changes and reload the configuration. But facing the following issue after calling configurationAndWatch(), i use the appender->setFile(logFileNameL); appender->activateOptions(p); to change