Esempio n. 1
0
 /**
  * Initialize logging
  */
 protected function initializeLogging()
 {
     $logger = $this->getLogger();
     // hook logger into pimcore
     \Logger::addLogger($logger);
     if ($this->output->isVerbose()) {
         \Logger::setPriorities(["info", "notice", "warning", "error", "critical", "alert", "emergency"]);
     }
     // set all priorities
     if ($this->output->isDebug()) {
         \Logger::setVerbosePriorities();
     }
 }