Core/Logging: store loggers in cache correctly