def configured_request_log_handlers(config, prefix='query_log', default_logger=None):
 handlers = []
 for section in config.sections():
  if section.startswith(prefix):
   options = dict(config.items(section))
   type_ = options.pop('type')
   if (type_ == 'default'):
    logger = (default_logger or get_logger())
    handler = ext.request_log_handler('default', logger)
   else:
    handler = ext.request_log_handler(type_, **options)
   handlers.append(handler)
 return handlers

def configured_request_log_handlers ( config , prefix = 'query_log' , default_logger = None ) : handlers = [ ] for section in config . sections ( ) : if section . startswith ( prefix ) : options = dict ( config . items ( section ) ) type_ = options . pop ( 'type' ) if ( type_ == 'default' ) : logger = ( default_logger or get_logger ( ) ) handler = ext . request_log_handler ( 'default' , logger ) else : handler = ext . request_log_handler ( type_ , ** options ) handlers . append ( handler ) return handlers
returns configured query loggers as defined in the config .