PyAnsysBaseFormatter#
- class ansys.tools.common.logger_formatter.PyAnsysBaseFormatter(fmt=None, datefmt=None, style='%', validate=True, *, defaults=None)#
Bases:
logging.FormatterProvides a custom formatter to truncate long columns.
Overview#
Set the maximum column width for module and function names. |
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.