Fixing a bug with setting custom loggers.