请问Magento2中的$this->logger->pushHandler在Linux上是不是有时会出问题?

Magento2中的$this->logger->pushHandler在Linux上不知道是不是有时会出现问题?

public function __construct(
    \Psr\Log\LoggerInterface $logger
){
    $this->logger = $logger;
}
$this->logger->pushHandler(new \Monolog\Handler\StreamHandler(BP . '/var/log/mylog/mylog-'.date('Y-m-d').'.log'));
$this->logger->info('There is mylog ');

pushHandler方法也不知道是不是存在问题。