} catch (UnknownHostException e) {
localhost = "localhost";
}
}
ClientFactory clientFactory = ClientFactory.newInstance();
clientFactory.setNick(nick);
clientFactory.setUsername("log4j");
clientFactory.setHostname(localhost);
clientFactory.setRealName("Brewtab IRC log4j appender");
client = clientFactory.connect(url);
}