Add a MockLogger.