silence_logging#

ansys.mapdl.core.cli.helpers.silence_logging()#

Silence the PyMAPDL logger so that only command output reaches stdout.

The logger level is raised above CRITICAL, which disables every record, and the same is done on the standard output handler when it is present.

Return type:

None

Examples

Silence PyMAPDL before writing machine-readable output:

>>> from ansys.mapdl.core.cli.helpers import silence_logging
>>> silence_logging()