This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android 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
 
 
subject: Need to append userid in logs using log4j
 
It's not a secret anymore!