On Aug 4, 2005, at 10:55 PM, macdev wrote:
I know I can set the location of the logfile used by Log4CXX using
the config files. I do this in the snippet I have included below.
But how do I tailor the location at runtime? For example on a unix
system how can make sure the logs go to a specific folder beneath
the users home folder.
logdir=/Users/devguy/library/Application Support/logs
log4j.appender.PriParser=org.apache.log4j.FileAppender
log4j.appender.PriParser.File=${logdir}/parser_internal.log
Thanks.
p.s. I bought the manual hoping it would help me, but what I am
looking for eludes me.
log4cxx mimics the user.home, user.name, user.dir, java.io.tmpdir
properties that work with log4j. So you could do:
log4j.appender.PriParser.File=${user.home}/parser_internal.log