Skip to main content

Prime Mesh Python client library 2024 R2

ansys.meshing.prime.Model

Last update: 17.07.2025

property Model.logger : PrimeLogger

Get PyPrimeMesh’s logger instance.

PyPrimeMesh’s logger instance can be used to save the logs to a file, redirect the logs to the given stream, control the verbosity of messages printed by PyPrimeMesh and more.

  • Returns: PrimeLogger : PyPrimeMesh’s logger instance.

Examples

Save logs to a file.

>>> model.logger.add_file_handler(logs_dir=r"./tmp")

Connect with Ansys