Use InetAddress to get hostname like logback does