private function log($level, $msg) { if (!is_array($msg)) { $msg = ['msg' => $msg]; } $log = Log::create($level, $this->getLoggerName(), $msg); // ハンドラへ通知する foreach ($this->_handlers as $h) { $h->post($log); } }