'modules' => [], | 'modules' => [], | ||||
'components' => [ | 'components' => [ | ||||
'log' => [ | 'log' => [ | ||||
'traceLevel' => YII_DEBUG ? 3 : 0, | |||||
'traceLevel' => YII_DEBUG ? 3 : 1, | |||||
'targets' => [ | 'targets' => [ | ||||
[ | [ | ||||
'class' => 'yii\log\FileTarget', | 'class' => 'yii\log\FileTarget', |
} | } | ||||
if($producer->active) { | if($producer->active) { | ||||
Yii::info($producer->name.' : Distribution du '.$date.', '.count($arrayOrders).' commande(s) enregistrée(s), '.$countOrders.' commande(s) payée(s), '.($mailOrdersSend ? 'Récapitulatif de commandes envoyé' : 'Aucun email envoyé'), 'cron-process-orders') ; | |||||
Yii::error($producer->name.' : Distribution du '.$date.', '.count($arrayOrders).' commande(s) enregistrée(s), '.$countOrders.' commande(s) payée(s), '.($mailOrdersSend ? 'Récapitulatif de commandes envoyé' : 'Aucun email envoyé'), 'cron-process-orders') ; | |||||
} | } | ||||
} | } | ||||
} | } |