Logger#

class ansys.mechanical.core.embedding.logger.Logger#

Provides the Logger class for embedding.

Overview#

flush

Flush the log.

can_log_message

Get whether a message at this level is logged.

debug

Write a debug message to the log.

error

Write a error message to the log.

info

Write an info message to the log.

warning

Write a warning message to the log.

fatal

Write a fatal message to the log.

Import detail#

from ansys.mechanical.core.embedding.logger import Logger

Method detail#

classmethod Logger.flush()#

Flush the log.

classmethod Logger.can_log_message(level: int) bool#

Get whether a message at this level is logged.

classmethod Logger.debug(msg: str)#

Write a debug message to the log.

classmethod Logger.error(msg: str)#

Write a error message to the log.

classmethod Logger.info(msg: str)#

Write an info message to the log.

classmethod Logger.warning(msg: str)#

Write a warning message to the log.

classmethod Logger.fatal(msg: str)#

Write a fatal message to the log.