localisation du cron.log

This commit is contained in:
root 2020-07-08 14:56:03 +02:00
parent 398d10c1ce
commit 9d1d2f6f49
3 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class CronCommand extends Command
{ {
$this->output = $output; $this->output = $output;
$this->filesystem = new Filesystem(); $this->filesystem = new Filesystem();
$this->rootlog = $this->container->get('kernel')->getProjectDir()."/../var/log/"; $this->rootlog = $this->container->get('kernel')->getRootDir()."/../var/log/";
$appCron = $this->container->getParameter('appCron'); $appCron = $this->container->getParameter('appCron');
if(!$appCron) if(!$appCron)
@ -68,6 +68,7 @@ class CronCommand extends Command
$this->writelnred('== CRON =================================================================================================='); $this->writelnred('== CRON ==================================================================================================');
$this->writelnred('=========================================================================================================='); $this->writelnred('==========================================================================================================');
$this->writeln ('Date = '.$now->format('Y-m-d H:i:s')); $this->writeln ('Date = '.$now->format('Y-m-d H:i:s'));
$this->writeln ('Application = '.$this->container->getParameter("appName"));
} }
foreach($crons as $cron) { foreach($crons as $cron) {

View File

@ -46,6 +46,7 @@ class SetPasswordCommand extends Command
$this->filesystem = new Filesystem(); $this->filesystem = new Filesystem();
$this->rootlog = $this->container->get('kernel')->getProjectDir()."/../var/log/"; $this->rootlog = $this->container->get('kernel')->getProjectDir()."/../var/log/";
$this->writelnred(''); $this->writelnred('');
$this->writelnred('== app:SetPasword'); $this->writelnred('== app:SetPasword');
$this->writelnred('=========================================================================================================='); $this->writelnred('==========================================================================================================');