On this page
  1. logging.getLoggerClass
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

logging.getLoggerClass

Prev: logging.getLogger | Up: logging | Next: logging.getLogRecordFactory
Rel: logging.addLevelName, logging.basicConfig, logging.BufferingFormatter, logging.captureWarnings
Ref: docs.python.org — logging.getLoggerClass
Tags: #public #python3 #stdlib #logging


Import

import logging
from logging import getLoggerClass

Signature & Overview

logging.getLoggerClass()

Return the class to be used when instantiating a logger.

Usage

import logging

assert issubclass(logging.getLoggerClass(), logging.Logger)

Gotchas

REPL Inspect

from logging import getLoggerClass
help(getLoggerClass)

Linked from

Related notes