Exemple #1
0
 protected function setLogging()
 {
     $this->canLog = false;
     $class = substr(preg_replace('#\\W+#', '.', get_class($this)), strlen($this->cfg["tasksNs"]));
     log::config(["path" => $this->cfg["logDir"] . "tasks/%Y/%m/%d/", "name" => "{$class}"]);
     $this->canLog = true;
 }