setLogger() setLogger(\Psr\Log\LoggerInterface $logger) : void Sets a logger instance on the object. Parameters \Psr\Log\LoggerInterface $logger