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

logging.getLogRecordFactory

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


Import

import logging
from logging import getLogRecordFactory

Signature & Overview

logging.getLogRecordFactory()

Return the factory to be used when instantiating a log record.

Usage

import logging

factory = logging.getLogRecordFactory()
assert callable(factory)

Gotchas

REPL Inspect

from logging import getLogRecordFactory
help(getLogRecordFactory)

Linked from

Related notes