예제 #1
0
파일: Logger.php 프로젝트: nora-worker/core
 /**
  * ログ出力
  */
 public function __call($name, $args)
 {
     if (false !== ($level = LogLevel::toInt($name))) {
         $this->post(Log::create(isset($args[0]) ? $args[0] : 'no message', isset($args[1]) ? $args[1] : [], $level, isset($args[2]) ? $args[2] : null));
         return true;
     }
     throw new Exception\InvalidMethod($name, $this);
 }
예제 #2
0
파일: Base.php 프로젝트: nora-worker/core
 protected function initWriter()
 {
     $this->_level = LogLevel::toInt($this->spec()->get('level', 'all'));
     $this->initWriterImpl();
 }