Skip to main content

Prime Mesh Python client library 2026 R1 SP01

ansys.meshing.prime.Model

Last update: 29.04.2026

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