writer = new PrintWriter(out); canonicalName = out.toString();    entries = Collections.synchronizedList(new LinkedList());
    protected Logger(PrintStream out) {        init();        writer = new PrintWriter(out);        canonicalName = out.toString();        // create a synchronized list for log entries since different threads may        // attempt to modify the list at the same time        entries = Collections.synchronizedList(new LinkedList());    }