Skip to content

gufo.err.formatter.loader

get_formatter implementation.

get_formatter(format='terse', *, primary_char=DEFAULT_PRIMARY_CHAR, secondary_char=DEFAULT_SECONDARY_CHAR)

Configure and return formatter instance.

Parameters:

Name Type Description Default
format str

Formatter name, one of: * terse * extend

'terse'
primary_char str

Caret primary char.

DEFAULT_PRIMARY_CHAR
secondary_char str

Caret secondary char.

DEFAULT_SECONDARY_CHAR

Returns:

Type Description
BaseFormatter

Formatter instance.