parameters: (self,args)
return_statement: return public.returnMsg(True, 'SET_SUCCESS')
docstring: @name 删除日志格式
          @author zhwen<zhw@bt.cn>
          @param log_format_name
function: def del_httpd_access_log_format(self,args):
          '''
          @name 删除日志格式
          @author zhwen<zhw@bt.cn>
          @param log_format_name
          '''
          conf = public.readFile(self.httpdconf)
          if not conf:
              return public.returnMsg(False, 'CONF_FILE_NOT_EXISTS')
          reg = '\s*#LOG_FORMAT_BEGIN_{n}(\n|.)+#LOG_FORMAT_END_{n}\n?'.format(n=args.log_format_name)
          conf = re.sub(reg,'',conf)
          self._del_format_log_of_website(args.log_format_name)
          public.writeFile(self.httpdconf,conf)
          public.serviceReload()
          return public.returnMsg(True, 'SET_SUCCESS')
function_tokens: def del_httpd_access_log_format ( self , args ) : conf = public . readFile ( self . httpdconf ) if not conf : return public . returnMsg ( False , 'CONF_FILE_NOT_EXISTS' ) reg = '\s*#LOG_FORMAT_BEGIN_{n}(\n|.)+#LOG_FORMAT_END_{n}\n?' . format ( n = args . log_format_name ) conf = re . sub ( reg , '' , conf ) self . _del_format_log_of_website ( args . log_format_name ) public . writeFile ( self . httpdconf , conf ) public . serviceReload ( ) return public . returnMsg ( True , 'SET_SUCCESS' )