Manage the active log format for the SMTP server.

    :param str log_format: The log format name.
    :param str server: The SMTP server name.

    Example of usage:

    .. code-block:: yaml

        smtp-log-format:
            win_smtp_server.active_log_format:
                - log_format: Microsoft IIS Log File Format

def active_log_format(name, log_format, server=_DEFAULT_SERVER):
    '''
    Manage the active log format for the SMTP server.

    :param str log_format: The log format name.
    :param str server: The SMTP server name.

    Example of usage:

    .. code-block:: yaml

        smtp-log-format:
            win_smtp_server.active_log_format:
                - log_format: Microsoft IIS Log File Format
    '''
    ret = {'name': name,
           'changes': {},
           'comment': six.text_type(),
           'result': None}
    current_log_format = __salt__['win_smtp_server.get_log_format'](server)

    if log_format == current_log_format:
        ret['comment'] = 'LogPluginClsid already contains the id of the provided log format.'
        ret['result'] = True
    elif __opts__['test']:
        ret['comment'] = 'LogPluginClsid will be changed.'
        ret['changes'] = {'old': current_log_format,
                          'new': log_format}
    else:
        ret['comment'] = 'Set LogPluginClsid to contain the id of the provided log format.'
        ret['changes'] = {'old': current_log_format,
                          'new': log_format}
        ret['result'] = __salt__['win_smtp_server.set_log_format'](log_format, server)
    return ret