Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to append userid in logs using log4j

 
venky roy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic