entries.add(dateCache + msg);
if (entries.size() < 2000) { entries.add(dateCache + msg); }
    public void log(String msg) {        // it's enough to render the date every second        if ((System.currentTimeMillis() - 1000) > dateLastRendered) {            renderDate();        }        entries.add(dateCache + msg);    }