This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Need to append userid in logs using log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Need to append userid in logs using log4j" Watch "Need to append userid in logs using log4j" New topic
Author

Need to append userid in logs using log4j

venky roy
Greenhorn

Joined: Jul 22, 2008
Posts: 4
Hi All,

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
venky
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to append userid in logs using log4j
 
Similar Threads
Logging new, unsupported fields
Logging into multiple files.
Issue in session manegement
Access HttpSession from static methods
how to roll Tomcat 5.5 / 6 main logs