[logback-user] UnknownHostException when using logback with logback.xml

Jan Ehrhardt jan.ehrhardt at googlemail.com
Tue Dec 13 13:57:56 CET 2011


when I use logback without a logback.xml, everything works fine, but when I
add a logback.xml file, I get an UnknownHostException. This happens in the
ch.qos.logback.core.util.ContextUtil class, when InetAddress.getLocalHost()
is called. In our environment, there is no hostname mapping available to
the JVM, so the JVM cannot find one.

So why does logback require the IP at this point?

Jan Ehrhardt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20111213/755a9a4b/attachment.html>

More information about the Logback-user mailing list