def get_log_format(server=_DEFAULT_SERVER):
 log_format_types = get_log_format_types()
 format_id = _get_wmi_setting('IIsSmtpServerSetting', 'LogPluginClsid', server)
 for key in log_format_types:
  if (str(format_id) == log_format_types[key]):
   return key
 _LOG.warning('Unable to determine log format.')
 return None

def get_log_format ( server = _DEFAULT_SERVER ) : log_format_types = get_log_format_types ( ) format_id = _get_wmi_setting ( 'IIsSmtpServerSetting' , 'LogPluginClsid' , server ) for key in log_format_types : if ( str ( format_id ) == log_format_types [ key ] ) : return key _LOG . warning ( 'Unable to determine log format.' ) return None
get the active log format for the smtp virtual server .