From: Gareth F. <ear...@go...> - 2010-04-19 09:06:54
|
So, for example, can do something like this? " log4j.appender.rootAppender.fileName=${programName}.log " Where ${programName} is the name of the program that reads the properties file? On 19 April 2010 09:54, Konstantin Litvinenko <to....@gm...> wrote: > Gareth Foster пишет: >> Hi, >> >> Is it possible to have a log file named after the program you are >> running, so if the program is myApp, can I have it so that it will log >> to myApp.log, by making changes in a properties file? >> > > Sure you can. Before you invoke configuring routine you make appropriate config file, with what > you really need, and than run configuring routine to setup loggers/appendes/layouts. That all. > I am not sure I understand you problem clearly :). > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Log4cpp-devel mailing list > Log...@li... > https://lists.sourceforge.net/lists/listinfo/log4cpp-devel > |