logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dong Zhang" <dzh...@seven.com>
Subject RE: How to log ip addresses?
Date Fri, 21 Nov 2008 01:45:05 GMT
Hi Lynn,

I have no idea about uPortal, but for log4j, it has no application
specific configuration, e.g. username, ip address, etc.

The reason you see username, is uPortal application logged it. So if you
want ip address, you need to look into uPortal doc/configuration files,
instead of log4j configuration.


-----Original Message-----
From: Poythress, Lynn [mailto:apoythre@skymail.csus.edu] 
Sent: Friday, November 21, 2008 6:56 AM
To: log4j-user@logging.apache.org
Subject: How to log ip addresses?


We are running Unicon's uPortal product.  It utilizes log4j and we have
a log4j.properties file which creates a portal.log file.  In that
portal.log file it logs users that log on to the portal.  We would like
it to log the ip address of each user; currently it just shows user name
and userid.

Do we modify the log4j.properties file to have it add each user's ip
address to the log?

If so, can you point me in the right direction?  I read about appenders,
but couldn't see any parameters that would specifically capture ip

Lynn Poythress

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message