aspose file tools*
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
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