dcsimg
Logging IP Address of the request in each log line
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jim_P
Posted On:   Monday, August 8, 2005 05:57 AM

HI


Can someone send me an example on how to log IP Address of the request in each log line?


Thanks & Regards,
Jim

Re: Logging IP Address of the request in each log line

Posted By:   fresote_fresote  
Posted On:   Tuesday, October 25, 2005 06:26 AM

Use NDC... put request ip address in NDC...



org.apache.log4j.NDC.push(request.getRemoteAddr() + sSep + Long.toString(new java.util.Date().getTime()));







http://www.jguru.com/forums/view.jsp?EID=1265346
About | Sitemap | Contact