add_child_logger#

Logger.add_child_logger(logger_name, level=None)#

Add a child logger to the main logger.

This logger is more general than an instance logger which is designed to track the state of the MAPDL instances.

If the logging level is in the arguments, a new logger with a reference to the _global logger handlers is created instead of a child.

Parameters:
logger_namestr

Name of the logger.

levelstr or int, optional

Level of logging

Returns:
logging.logger

Logger class.