fastvideo.v1.logging_utils.formatter

fastvideo.v1.logging_utils.formatter#

Module Contents#

Classes#

NewLineFormatter

Adds logging prefix to newlines to align multi-line messages.

API#

class fastvideo.v1.logging_utils.formatter.NewLineFormatter(fmt, datefmt=None, style='%')[source]#

Bases: logging.Formatter

Adds logging prefix to newlines to align multi-line messages.

Initialization

Initialize the formatter with specified format strings.

Initialize the formatter either with the specified format string, or a default as described above. Allow for specialized date formatting with the optional datefmt argument. If datefmt is omitted, you get an ISO8601-like (or RFC 3339-like) format.

Use a style parameter of ‘%’, ‘{’ or ‘$’ to specify that you want to use one of %-formatting, :meth:str.format ({}) formatting or

Class:

string.Template formatting in your format string.

.. versionchanged:: 3.2 Added the style parameter.

format(record)[source]#