This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configurate properties of log4j in runtime

 
Haroldo Nascimento
Ranch Hand
Posts: 79
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic