PyMechanicalFormatter
#
- class ansys.mechanical.core.logging.PyMechanicalFormatter(fmt=STDOUT_MSG_FORMAT, datefmt=None, style='%', validate=True, defaults=None)#
Bases:
logging.Formatter
Provides for overwriting default format styles with custom format styles.
- Parameters:
- fmt
optional
The default is
STDOUT_MSG_FORMAT
.- datefmt
optional
The default is
None
.- style
optional
The default is
%
.- validatebool,
optional
The default is
None
.
- fmt
Import detail#
from ansys.mechanical.core.logging import PyMechanicalFormatter