parameters: (self, rec)
return_statement: return True
docstring: filter a record, adding the colors automatically
  
  		* error: red
  		* warning: yellow
  
  		:param rec: message to record
docstring_summary: filter a record, adding the colors automatically
docstring_tokens: filter a record adding the colors automatically
function: def filter(self, rec):
  		"""
  		filter a record, adding the colors automatically
  
  		* error: red
  		* warning: yellow
  
  		:param rec: message to record
  		"""
  
  		rec.c1 = colors.PINK
  		rec.c2 = colors.NORMAL
  		rec.zone = rec.module
  		if rec.levelno >= logging.INFO:
  			if rec.levelno >= logging.ERROR:
  				rec.c1 = colors.RED
  			elif rec.levelno >= logging.WARNING:
  				rec.c1 = colors.YELLOW
  			else:
  				rec.c1 = colors.GREEN
  			return True
  
  		m = re_log.match(rec.msg)
  		if m:
  			rec.zone = m.group(1)
  			rec.msg = m.group(2)
  
  		if zones:
  			return getattr(rec, 'zone', '') in zones or '*' in zones
  		elif not verbose > 2:
  			return False
  		return True
function_tokens: def filter ( self , rec ) : rec . c1 = colors . PINK rec . c2 = colors . NORMAL rec . zone = rec . module if rec . levelno >= logging . INFO : if rec . levelno >= logging . ERROR : rec . c1 = colors . RED elif rec . levelno >= logging . WARNING : rec . c1 = colors . YELLOW else : rec . c1 = colors . GREEN return True m = re_log . match ( rec . msg ) if m : rec . zone = m . group ( 1 ) rec . msg = m . group ( 2 ) if zones : return getattr ( rec , 'zone' , '' ) in zones or '*' in zones elif not verbose > 2 : return False return True