Re: Initialization problem

2008-09-17 Thread Curt Arnold
On Sep 17, 2008, at 5:35 AM, Alexander Rojas wrote: I'm working on Ubuntu 8.04 Hardy, log4cxx version 0.9.7-6, gcc 4.2.3. The IDE is kdevelop and the file is encoded as UTF-8. I don't know if this is all the relevant information. Thank you for your help Alexander Rojas log4cxx 0.9.7 is

RE: How to config log4cxx to delete the log files periodically

2008-09-17 Thread Dale King
That is already possible. You would need to use the RollingFileAppender that is in the rolling namespace. It is a more flexible class and is the superclass that the others are derived from. With it you specify a rolling policy and a triggering policy (the time based one is both). You could easil

RE: How to config log4cxx to delete the log files periodically

2008-09-17 Thread renny . koshy
Again, this is my opinion: I would suppose that would be the case... however, from an OOAD perspective, DailyRollingFileAppender deleting files would end up being a dichotomy in the use-case of a "FileAppender". I would suggest you setup a ExpiredFileManager or something that sets up its own

Initialization problem

2008-09-17 Thread Alexander Rojas
Hi, I'm trying to use log4cxx for a project I'm working on. The problem is when I try to load the logger as described in the tutorial like this: LoggerPtr GluePairUnitDlg::logger(Logger::getLogger("gluepairunitdlg")); I get the following errors: gluepairunit.cpp:4: error:

RE: How to config log4cxx to delete the log files periodically

2008-09-17 Thread Jathy
Thanks all. Does it mean I must extend DailyRollingFileAppender class if I want to reach such goal? renny.koshy wrote: > > From what I've seen out there... small biz to large enterprises is that > for System Admins, they see deleting logfiles as part of a global task > that they generally se