Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configurate properties of log4j in runtime

 
Haroldo Nascimento
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic