Exemplo n.º 1
0
 public function afterAction($action, $result)
 {
     $key = $this->_getKey($action);
     Profiler::end($key);
     $timeCost = Profiler::time($key);
     Profiler::free($key);
     list($prefix, $actionInfo) = explode("\$", $key);
     $logKey = "Action Time Cost";
     $logMsg = "[action:{$actionInfo}][time(ms):{$timeCost}]";
     \Yii::info($logMsg, $logKey);
     return $result;
 }