Lines Matching full:logger
99 the handler to the top-level library logger ("fontTools").
104 logger Specifies the logger name or a Logger instance to be configured.
105 (it defaults to "fontTools" logger). Unlike basicConfig, this
106 function can be called multiple times to reconfigure a logger.
107 If the logger or any of its children already exists before the
119 level Set the logger level to the specified level.
124 handlers, which will be added to the logger. Any handler
154 # By default, the top-level library logger is configured.
155 logger = kwargs.pop("logger", "fontTools")
156 if not logger or isinstance(logger, basestring):
157 # empty "" or None means the 'root' logger
158 logger = logging.getLogger(logger)
159 # before (re)configuring, reset named logger and its children (if exist)
160 _resetExistingLoggers(parent=logger.name)
174 logger.addHandler(h)
175 if logger.name != "root":
177 logger.propagate = kwargs.pop("propagate", False)
181 logger.setLevel(level)
188 """ Reset the logger named 'parent' and all its children to their initial
220 logger = root.manager.loggerDict[name]
221 logger.level = logging.NOTSET
222 logger.handlers = []
223 logger.filters = []
224 logger.propagate = True
225 logger.disabled = False
249 If initialised with a logger, it can log the elapsed time automatically
259 The same Timer instance, holding a reference to a logger, can be reused
290 def __init__(self, logger=None, msg=None, level=None, start=None): argument
292 if logger is None:
296 "'%s' can't be specified without a 'logger'" % arg)
297 self.logger = logger
345 """ End the current lap. If timer has a logger, log the time elapsed,
349 if self.logger is None or exc_type:
350 # if there's no logger attached, or if any exception occurred in
357 self.logger.log(self.level, message, msg_parts)
363 Timer instance, referencing the same logger.
380 return self.__class__(self.logger, msg, level)
436 def __init__(self, logger, level): argument
439 if isinstance(logger, basestring):
440 self.logger = logging.getLogger(logger)
442 self.logger = logger
445 self.original_disabled = self.logger.disabled
446 self.original_level = self.logger.level
447 self.original_propagate = self.logger.propagate
449 self.logger.addHandler(self)
450 self.logger.setLevel(self.level)
451 self.logger.disabled = False
452 self.logger.propagate = False
457 self.logger.removeHandler(self)
458 self.logger.setLevel(self.original_level)
459 self.logger.disabled = self.original_disabled
460 self.logger.propagate = self.original_propagate
474 msg = "Pattern '%s' not found in logger records" % regexp
483 a logging.Logger named after their respective <module>.<class>.
491 >>> isinstance(a.log, logging.Logger)
498 >>> isinstance(b.log, logging.Logger)
533 class LastResortLogger(logging.Logger):
545 # this is the same as Python 3.5's logging.Logger.callHandlers
566 "No handlers could be found for logger"