Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Other Open Source Projects and the fly likes Configurate properties of log4j in runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Configurate properties of log4j in runtime" Watch "Configurate properties of log4j in runtime" New topic
Author

Configurate properties of log4j in runtime

Haroldo Nascimento
Ranch Hand

Joined: Aug 14, 2003
Posts: 79
I am using log4j.
I need create one arq of log to each user in my portal.
How I can cofigurate this propertie in run time:
log4j.appender.FILELOGPORTALWEB.File=XXXX.log,
where XXXX is the name of user.
Thanks
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
not sure if this
log4j FAQ
FAQ c'd help. But i see setFile() for
FileAppender
class.
So if you can get to the appender at runtime, you s;d be able to configure the file as well. Try playing around with it and let us know.
 
wood burning stoves
 
subject: Configurate properties of log4j in runtime