Пример #1
0
 public function dispatchLoopShutdown(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response)
 {
     Logger::stopLogging();
 }
Пример #2
0
 public function dispatchLoopShutdown(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response)
 {
     Logger::stopLogging($this->_logFileName);
 }
Пример #3
0
 /**
  *
  * 写日志文件
  * @param string $filename 日志文件名
  * @param string $loginfo 日志内容
  * @param string $path 路径
  *
  */
 public static function logfile($filename, $loginfo, $path = '/tmp/')
 {
     Logger::getLogger($filename, "a+", $path)->log("[" . date("Ymd H:i:s") . "] " . preg_replace('/[\\r\\n]/', '', $loginfo) . "\r\n");
 }