예제 #1
0
파일: Task.php 프로젝트: a13k5and3r/Tman
 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;
 }