PyAnsysBaseFormatter#

class ansys.tools.common.logger_formatter.PyAnsysBaseFormatter(fmt=None, datefmt=None, style='%', validate=True, *, defaults=None)#

Bases: logging.Formatter

Provides a custom formatter to truncate long columns.

Overview#

set_column_width

Set the maximum column width for module and function names.

max_column_width

Get the maximum column length.

Import detail#

from ansys.tools.common.logger_formatter import PyAnsysBaseFormatter

Property detail#

property PyAnsysBaseFormatter.max_column_width#

Get the maximum column length.

Method detail#

PyAnsysBaseFormatter.set_column_width(width: int = 15)#

Set the maximum column width for module and function names.