notify();
    public synchronized String format (LogRecord record)    {        StringBuffer sb = new StringBuffer(256);        // First line (if any)        if (constants.printTime.getValue()) {            dat.setTime(record.getMillis());            args[0] = dat;            StringBuffer text = new StringBuffer();            if (formatter == null) {                formatter = new MessageFormat(format);            }            formatter.format(args, text, null);            sb.append(text);        }        if (constants.printClass.getValue()) {            sb.append(" ");            if (record.getSourceClassName() != null) {                sb.append(record.getSourceClassName());            } else {                sb.append(record.getLoggerName());            }        }        if (constants.printMethod.getValue()) {            if (record.getSourceMethodName() != null) {                sb.append(" ");                sb.append(record.getSourceMethodName());            }        }        if (sb.length() > 0) {            sb.append(lineSeparator);        }        // Second line        String message = formatMessage(record);        //sb.append(record.getLevel().getLocalizedName());        sb.append(record.getLevel().getName());        sb.append(": ");        sb.append(message);        sb.append(lineSeparator);        if (record.getThrown() != null) {            try {                StringWriter sw = new StringWriter();                PrintWriter pw = new PrintWriter(sw);                record.getThrown().printStackTrace(pw);                pw.close();                sb.append(sw.toString());            } catch (Exception ex) {            }        }        notify();        return sb.toString();    }