Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Other Open Source Projects
Need to append userid in logs using log4j
posted 7 years ago
I need to append logged in user information in logs. we are using log4j.
Can anyone help me how to do it? Its
for example the following format is shown below:
DEBUG date/time Logged-in-USer message.
In session I am having user information. Is there any property in log4j to take that username and to append that in the logs?
Its bit urgent.
Thanks in advance.
Thanks and Regards
It is sorta covered in the
JavaRanch Style Guide
Logging into multiple files.
Logging new, unsupported fields
Access HttpSession from static methods
Issue in session manegement
how to roll Tomcat 5.5 / 6 main logs