Forums Register Login

Configurate properties of log4j in runtime

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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'm not sure if I approve of this interruption. But this tiny ad checks out:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 770 times.
Similar Threads
Debugging Best Practices??
not logging as coded
error when i run log file
JDK1.4 and logging
how to log errors occurred in backend java engine or servlet
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:06:43.