if (severity == ERROR) frame.error(message);
    public void logMessage(int severity, String message) {        Date date = new Date();        StringBuffer buf = new StringBuffer();        buf.append('[');        buf.append(date.toString());        buf.append("] ");        if (severity == ERROR)            buf.append("ERROR: ");        buf.append(message);        frame.writeToConsole(buf.toString());    }