This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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
 
It's not a secret anymore!