parameters: (self, record)
return_statement: return rv
docstring: Determine if a record is loggable by consulting all the filters.
  
          The default is to allow the record to be logged; any filter can veto
          this and the record is then dropped. Returns a zero value if a record
          is to be dropped, else non-zero.
  
          .. versionchanged:: 3.2
  
             Allow filters to be just callables.
docstring_summary: Determine if a record is loggable by consulting all the filters.
docstring_tokens: Determine if a record is loggable by consulting all the filters .
function: def filter(self, record):
          """
          Determine if a record is loggable by consulting all the filters.
  
          The default is to allow the record to be logged; any filter can veto
          this and the record is then dropped. Returns a zero value if a record
          is to be dropped, else non-zero.
  
          .. versionchanged:: 3.2
  
             Allow filters to be just callables.
          """
          rv = True
          for f in self.filters:
              if hasattr(f, 'filter'):
                  result = f.filter(record)
              else:
                  result = f(record) # assume callable - will raise if not
              if not result:
                  rv = False
                  break
          return rv
function_tokens: def filter ( self , record ) : rv = True for f in self . filters : if hasattr ( f , 'filter' ) : result = f . filter ( record ) else : result = f ( record ) # assume callable - will raise if not if not result : rv = False break return rv