public void message(String msg, LoggingLevel severity) {
        if ((severity.getCode() & logMask) != 0) { //True only if all logMask bits are set in severity
            writeMessage(msg);
        }
        if (next != null) {
            next.message(msg, severity); 
        }
    }