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:
fmtoptional

The default is STDOUT_MSG_FORMAT.

datefmtoptional

The default is None.

styleoptional

The default is %.

validatebool, optional

The default is None.

Import detail#

from ansys.mechanical.core.logging import PyMechanicalFormatter