prefect.logging.formatters

Functions

format_exception_info

format_exception_info(exc_info: ExceptionInfoType) -> dict[str, Any]

Classes

JsonFormatter

Formats log records as a JSON string.

The format may be specified as “pretty” to format the JSON with indents and newlines.

Methods:

format

format(self, record: logging.LogRecord) -> str

PrefectFormatter

Methods:

formatMessage

formatMessage(self, record: logging.LogRecord) -> str