add_instance_logger#

OslLogger.add_instance_logger(instance_name: str, osl_instance: Optislang, level: str | None = None) OslCustomAdapter#

Add a logger for an Optislang instance.

Parameters:
instance_namestr

Name of the instance logger.

osl_instance: Optislang

Optislang instance object. This object should contain the name attribute.

level: Optional[str], optional

Level of logging. Defaults to None.

Returns:
OslCustomAdapter

Customized logger with extra inputs.