Re: [Log4cplus-devel] use configuration file for rolling appender, but set filename inside applicat
Logging Framework for C++
Brought to you by:
wilx
From: Andreas B. <bie...@co...> - 2012-06-18 07:18:01
|
Dear Ulrich Heinicke, we used environment variables for that in our project. On 18.06.2012 07:06, Ulrich Heinicke wrote: > Hi, > i want to use a configuration file like this: <snip> > # setup the ROLLFILE > log4cplus.appender.ROLLFILE=log4cplus::RollingFileAppender > log4cplus.appender.ROLLFILE.MaxFileSize=1000KB log4cplus.appender.ROLLFILE.File=${LOGFILE_PATTERN} <snip> And in sthe code something like: ---8<--- // put some variables in the environment that can be used in the // configuration file setenv("LOGFILE_PATTERN", "/my/cool/log/file", 0); --->8--- But I'm curious if there is another way to do that. best regards Andreas Bießmann |