protected function buildRequestInfo() { if (PHP_SAPI == 'cli') { $info = '[cli]'; } elseif ($this->request) { $info = '[' . $this->request->remoteIp() . '] ' . $this->request->method() . ' ' . $this->request->fullPath(); } else { $info = ''; } return $info; }