'Create a LogConfig object'

def _parse_log_config(self):

    if (self.log_driver is None):
        return None
    options = dict(Type=self.log_driver, Config=dict())
    if (self.log_options is not None):
        options['Config'] = self.log_options
    try:
        return LogConfig(**options)
    except ValueError as exc:
        self.fail(('Error    parsing    logging    options    -    %s' % exc))
