ID EN
Logging

makeLogRecord

Python 3.11

Creates and returns a new LogRecord instance whose attributes are defined by attrdict. This function is useful for taking a pickled LogRecord attribute dictionary, sent over a socket, and reconstituting it as a LogRecord instance at the receiving end.

Syntax

PYTHON
logging.makeLogRecord(attrdict)

See Also

LogRecord LogRecord LogRecord