logging.Logger.setLevel()

Logger.setLevel(lvl) Sets the threshold for this logger to lvl. Logging messages which are less severe than lvl will be ignored. When a logger is created, the level is set to NOTSET (which causes all messages to be processed when the logger is the root logger, or delegation to the parent when the logger is a non-root logger). Note that the root logger is created with level WARNING. The term ‘delegation to the parent’ means that if a logger has a level of NOTSET, its chain of ancestor loggers

logging.Logger.removeHandler()

Logger.removeHandler(hdlr) Removes the specified handler hdlr from this logger.

logging.Logger.removeFilter()

Logger.removeFilter(filt) Removes the specified filter filt from this logger.

logging.Logger.propagate

Logger.propagate If this evaluates to true, events logged to this logger will be passed to the handlers of higher level (ancestor) loggers, in addition to any handlers attached to this logger. Messages are passed directly to the ancestor loggers’ handlers - neither the level nor filters of the ancestor loggers in question are considered. If this evaluates to false, logging messages are not passed to the handlers of ancestor loggers. The constructor sets this attribute to True. Note If you a

logging.Logger.makeRecord()

Logger.makeRecord(name, lvl, fn, lno, msg, args, exc_info, func=None, extra=None, sinfo=None) This is a factory method which can be overridden in subclasses to create specialized LogRecord instances.

logging.Logger.log()

Logger.log(lvl, msg, *args, **kwargs) Logs a message with integer level lvl on this logger. The other arguments are interpreted as for debug().

logging.Logger.isEnabledFor()

Logger.isEnabledFor(lvl) Indicates if a message of severity lvl would be processed by this logger. This method checks first the module-level level set by logging.disable(lvl) and then the logger’s effective level as determined by getEffectiveLevel().

logging.Logger.info()

Logger.info(msg, *args, **kwargs) Logs a message with level INFO on this logger. The arguments are interpreted as for debug().

logging.Logger.hasHandlers()

Logger.hasHandlers() Checks to see if this logger has any handlers configured. This is done by looking for handlers in this logger and its parents in the logger hierarchy. Returns True if a handler was found, else False. The method stops searching up the hierarchy whenever a logger with the ‘propagate’ attribute set to False is found - that will be the last logger which is checked for the existence of handlers. New in version 3.2.

logging.Logger.handle()

Logger.handle(record) Handles a record by passing it to all handlers associated with this logger and its ancestors (until a false value of propagate is found). This method is used for unpickled records received from a socket, as well as those created locally. Logger-level filtering is applied using filter().