public function dispatchLoopShutdown(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) { Logger::stopLogging(); }
public function dispatchLoopShutdown(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) { Logger::stopLogging($this->_logFileName); }
/** * * 写日志文件 * @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"); }