Lines Matching refs:logger
227 logger = logging.getLogger(qn)
240 logger.setLevel(logging._levelNames[level])
241 for h in logger.handlers[:]:
242 logger.removeHandler(h)
243 logger.propagate = propagate
244 logger.disabled = 0
250 logger.addHandler(handlers[hand])
258 logger = root.manager.loggerDict[log]
260 logger.level = logging.NOTSET
261 logger.handlers = []
262 logger.propagate = 1
264 logger.disabled = disable_existing_loggers
537 raise ValueError('Unable to configure logger '
545 'logger: %s' % e)
635 raise ValueError('Unable to configure logger '
644 logger = root.manager.loggerDict[log]
646 logger.level = logging.NOTSET
647 logger.handlers = []
648 logger.propagate = True
650 logger.disabled = True
652 # And finally, do the root logger
659 'logger: %s' % e)
760 def add_handlers(self, logger, handlers):
761 """Add handlers to a logger from a list of names."""
764 logger.addHandler(self.config['handlers'][h])
768 def common_logger_config(self, logger, config, incremental=False):
774 logger.setLevel(logging._checkLevel(level))
777 for h in logger.handlers[:]:
778 logger.removeHandler(h)
781 self.add_handlers(logger, handlers)
784 self.add_filters(logger, filters)
787 """Configure a non-root logger from a dictionary."""
788 logger = logging.getLogger(name)
789 self.common_logger_config(logger, config, incremental)
792 logger.propagate = propagate
795 """Configure a root logger from a dictionary."""