On this page
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
- Inspect before calling
setLoggerClass(): Subclass the currently registered logger class so you don't clobber another library's custom logger.
REPL Inspect
from logging import getLoggerClass
help(getLoggerClass)
Linked from
Related notes
- tuts/python3/stdlib_module/logging/getLogger Linked here; links to this page; shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging/getLogRecordFactory Linked here; links to this page; shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/logging/addLevelName Linked here; shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging/basicConfig Linked here; shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging/BufferingFormatter Linked here; shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging/captureWarnings Linked here; shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging/critical shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging/debug shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging/disable shared tags: #logging, #stdlib