def init_logger(self, key):
    self.loggers[key] = Logger(key, self.logdir, **self.kwargs)
    for logger in self.loggers[key].loggers:
        if isinstance(logger, PlotLogger):
            self.plot_handler.append(logger)
def init_logger(self, key):
    self.loggers[key] = Logger(key, self.logdir, **self.kwargs)
    for logger in self.loggers[key].loggers:
        if isinstance(logger, PlotLogger):
            self.plot_handler.append(logger)