EnvironBackend
#
- class ansys.mechanical.core.embedding.logger.environ.EnvironBackend#
Provides the environment variable backend for Mechanical logging.
Overview#
Flush the log. |
|
Enable the given sink. |
|
Disable the log level for this sink. |
|
Set the log level for this sink based on the Python log level. |
|
Set whether to auto flush to the standard log file. |
|
Set the location to write the log file to. |
|
Set the base location to write the log file to. |
|
Return whether a message with the given severity is outputted to the log. |
|
Log the message to the configured logging mechanism. |
Import detail#
from ansys.mechanical.core.embedding.logger.environ import EnvironBackend
Method detail#
- EnvironBackend.flush()#
Flush the log.
- EnvironBackend.disable(sink: int = sinks.StandardSinks.CONSOLE)#
Disable the log level for this sink.
- EnvironBackend.set_log_level(level: int, sink: int = sinks.StandardSinks.CONSOLE)#
Set the log level for this sink based on the Python log level.
- EnvironBackend.set_auto_flush(flush: bool) None #
Set whether to auto flush to the standard log file.
- EnvironBackend.set_base_directory(base_directory: str) None #
Set the base location to write the log file to.
The base directory contains time-stamped subfolders where the log file is actually written to. If a base directory is set, it takes precedence over the
set_directory
location.