Hi,
i want to use a configuration file like this:
# switch on general logging (reports ALL levels to ROLLFILE and OUTPUT)
log4cplus.rootLogger=ALL, ROLLFILE, OUTPUT
# switch on release-logging (reports only warnings and errors levels to
ROLLFILE)
#log4cplus.rootLogger=WARN, ROLLFILE
# switch off general logging
#log4cplus.rootLogger=OFF
# explicitely enable loggers (even if general logging is off)
#log4cplus.logger.IBHStatik=ALL, ROLLFILE
#log4cplus.logger.IBHCore=ALL, ROLLFILE
# setup the ROLLFILE
log4cplus.appender.ROLLFILE=log4cplus::RollingFileAppender
log4cplus.appender.ROLLFILE.MaxFileSize=1000KB
log4cplus.appender.ROLLFILE.MaxBackupIndex=50
log4cplus.appender.ROLLFILE.layout=log4cplus::PatternLayout
log4cplus.appender.ROLLFILE.layout.ConversionPattern=%d %-5p (%F:%L) - %m%n
but the filename for the RollingFileAppender i will set in my application.
How can i do this?
Thanks
Ulrich
|