'config log global param'

def config_log_global(self):

    xml_str = '<globalParam    operation="merge">'
    if self.log_time_stamp:
        if ((self.state == 'present') and (self.log_time_stamp.upper() != self.log_dict.get('logTimeStamp'))):
            xml_str += ('<logTimeStamp>%s</logTimeStamp>' % self.log_time_stamp.upper())
            self.updates_cmd.append(('info-center    timestamp    log    %s' % TIME_STAMP_DICT.get(self.log_time_stamp)))
        elif ((self.state == 'absent') and (self.log_time_stamp.upper() == self.log_dict.get('logTimeStamp'))):
            xml_str += '<logTimeStamp>DATE_SECOND</logTimeStamp>'
            self.updates_cmd.append('undo    info-center    timestamp    log')
        else:
            pass
    if (self.log_buff_enable != 'no_use'):
        if (self.log_dict.get('icLogBuffEn') != self.log_buff_enable):
            xml_str += ('<icLogBuffEn>%s</icLogBuffEn>' % self.log_buff_enable)
            if (self.log_buff_enable == 'true'):
                self.updates_cmd.append('info-center    logbuffer')
            else:
                self.updates_cmd.append('undo    info-center    logbuffer')
    if self.log_buff_size:
        if ((self.state == 'present') and (self.log_dict.get('bufferSize') != self.log_buff_size)):
            xml_str += ('<bufferSize>%s</bufferSize>' % self.log_buff_size)
            self.updates_cmd.append(('info-center    logbuffer    size    %s' % self.log_buff_size))
        elif ((self.state == 'absent') and (self.log_dict.get('bufferSize') == self.log_buff_size)):
            xml_str += '<bufferSize>512</bufferSize>'
            self.updates_cmd.append('undo    info-center    logbuffer    size')
    if (xml_str == '<globalParam    operation="merge">'):
        return ''
    else:
        xml_str += '</globalParam>'
        return xml_str
