OslLogger#

class ansys.optislang.core.logging.OslLogger(loglevel: str = 'DEBUG', log_to_file: bool = False, logfile_name: str = 'pyOptislang.log', log_to_stdout: bool = True)#

Provides the logger class created for each session.

Methods

OslLogger.add_file_handler([logfile_name, ...])

Add a file handler (output file) to the logger.

OslLogger.add_instance_logger(instance_name, ...)

Add a logger for an Optislang instance.

OslLogger.add_std_out_handler([loglevel])

Add standard output to the terminal.

OslLogger.create_logger(new_logger_name[, level])

Create a logger for the Optislang instance.

OslLogger.set_log_level(loglevel)

Set the log level of the object and its handlers.

Attributes