public void message(int type, String msg) { String tp; switch (type) { case EVENT_MSG_INFO: tp = "info"; break; case EVENT_MSG_NOTICE: tp = "notice"; break; case EVENT_MSG_WARN: tp = "warn"; break; case EVENT_MSG_ERROR: tp = "error"; break; default: throw new Error("EventHandler.message() called with bad type: "+ type); } out.println("["+tp+"] "+msg.trim());
public void message(String type, String msg) { out.println("["+type+"] "+msg.trim());
    public void message(int type, String msg) {        String tp;        switch (type) {            case EVENT_MSG_INFO: tp = "info"; break;            case EVENT_MSG_NOTICE: tp = "notice"; break;            case EVENT_MSG_WARN: tp = "warn"; break;            case EVENT_MSG_ERROR: tp = "error"; break;            default:                throw new Error("EventHandler.message() called with bad type: "+                                type);        }        out.println("["+tp+"] "+msg.trim());    }