public Message receive() {
        Message m = receiveMessage();

        if (m != null && mLocalName != Constant.LOGGER) {
            if (getEnableLog()) {
                Message m2 = createLogMessage(m);
                if (m2 != null) {
                    mSendQueue.add(m2);
                }
            }
        }
        return m;
    }