diff --git a/src/power_grid_model_io/converters/base_converter.py b/src/power_grid_model_io/converters/base_converter.py index f05fd902..48444a3e 100644 --- a/src/power_grid_model_io/converters/base_converter.py +++ b/src/power_grid_model_io/converters/base_converter.py @@ -30,7 +30,7 @@ def __init__( """ Initialize a logger """ - self._logger = logging.getLogger(type(self).__name__) + self._logger = logging.getLogger(f"{__name__}_{id(self)}") self._logger.setLevel(log_level) self._log = structlog.wrap_logger(self._logger, wrapper_class=structlog.make_filtering_bound_logger(log_level)) self._source = source