aspose file tools
The moose likes Servlets and the fly likes How to show the user session information in the log file? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "How to show the user session information in the log file?" Watch "How to show the user session information in the log file?" New topic
Author

How to show the user session information in the log file?

Koti Samadhi
Greenhorn

Joined: Aug 26, 2009
Posts: 22
Hi All,

How to show the user session information in the log file?

Anyone can please provide the solution for display the user session information in the log file.

Thanks & Regards
Koti
Chinna Eranna
Ranch Hand

Joined: Dec 08, 2009
Posts: 174

What do you mean by user session ?


- Chinna
Koti Samadhi
Greenhorn

Joined: Aug 26, 2009
Posts: 22
User Session means- System logged user session information.

Chinna Eranna
Ranch Hand

Joined: Dec 08, 2009
Posts: 174

If you are talking about HttpSession, you can get lots of information and print in the log.

Still, I think.. you question is not clear.. on what you want to log.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12612
You can log anything you want.

It also depends on which logging system you're using, for example Log4J has "profiles" (I think that's what it's called) that can show session info more automatically, but I don't recall how it works.
 
 
subject: How to show the user session information in the log file?
 
MyEclipse, The Clear Choice