ID EN
Logging

BufferingFormatter

Python 3.11

A base formatter class suitable for subclassing when you want to format a number of records. You can pass a Formatter instance which you want to use to format each line (that corresponds to a single record). If not specified, the default formatter (which just outputs the event message) is used as the line formatter.

Syntax

PYTHON
class logging.BufferingFormatter(linefmt=None)

See Also

Formatter