how would a wrapper for Log4cxx best look like

2008-06-09 Thread Ning Zhao
Hi all, I'm trying to write a thin wrapper for log4cxx for my own application, so that: 1. Instead of including log4xx-specific headers, I only need to include a MyAppLogging.h in each cpp of my source code. 2. For performance's sake, I consider the " if(logger->isXEnabled())" condition

how to make the system generate the output log file suffix?

2008-06-06 Thread Ning Zhao
Hi all! in my log4cxx.properties file, I'd like to write the output log file name in this way: log4j.appender.R.File=%h/myApp%g.log where %h means my home directory and %g means the generated file name suffix. For example, myApp0.log, myApp1.log, myApp2.log, ( Please see http://ja