Re: Default Initialization Servlet: Determine Hostname?

2009-05-11 Thread Thomas Moorer
To: Log4J Users List Cc: log4j-user@logging.apache.org Sent: Monday, May 11, 2009 12:59:14 PM Subject: Re: Default Initialization Servlet: Determine Hostname? this should be pretty straightforward: you can determine hostname with InetAddress.getLocalHost(). after that, it's just code. you probably

Re: Default Initialization Servlet: Determine Hostname?

2009-05-11 Thread Douglas E Wegscheid
this should be pretty straightforward: you can determine hostname with InetAddress.getLocalHost(). after that, it's just code. you probably won't get an address of "localhost" back, though. localhost usually (always?) maps to 127.0.0.1... Douglas E Wegscheid Lead Technical Analyst, Whirlpool Co

Default Initialization Servlet: Determine Hostname?

2009-05-11 Thread Thomas Moorer
Hi All, I need help with this one. What I am trying to do is set up a default initialization servlet as explained in the manual http://logging.apache.org/log4j/1.2/manual.html (see below) What I would like to do is determine in the Log4jInit servlet's init method the hostname of the server and l