logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Douglas E Wegscheid <Douglas_E_Wegsch...@whirlpool.com>
Subject Re: Default Initialization Servlet: Determine Hostname?
Date Mon, 11 May 2009 16:59:14 GMT
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 Corporation
(269)-923-5278

"A wrong note played hesitatingly is a wrong note. A wrong note played 
with conviction is interpretation."

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message