aspose file tools*
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 Spring in Action this week in the Spring 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Configurate properties of log4j in runtime