InstanceFilter#

class ansys.mechanical.core.logging.InstanceFilter(name='')#

Bases: logging.Filter

Ensures that the instance name record always exists.

Overview#

filter

Check the log record and return True to log it or False to discard it.

Import detail#

from ansys.mechanical.core.logging import InstanceFilter

Method detail#

InstanceFilter.filter(record)#

Check the log record and return True to log it or False to discard it.