File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Other Open Source Projects
Need to append userid in logs using log4j
Joined: Jul 22, 2008
Sep 24, 2008 10:01:00
I need to append logged in user information in logs. we are using log4j.
Can anyone help me how to do it? Its j2ee application.
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
I agree. Here's the link:
subject: Need to append userid in logs using log4j
Access HttpSession from static methods
Logging into multiple files.
how to roll Tomcat 5.5 / 6 main logs
Issue in session manegement
Logging new, unsupported fields
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014