From 596ffc8097e77313add3612e036cfa66d9b212e8 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 4 Jul 2016 21:13:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B1=E4=BA=8Etrace=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=BC=82=E5=B8=B8=EF=BC=8CSocket=20trace?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E4=BB=8D=E7=84=B6=E6=9B=B4=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E9=A9=B1=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/{debug => log/driver}/Socket.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) rename library/think/{debug => log/driver}/Socket.php (98%) diff --git a/library/think/debug/Socket.php b/library/think/log/driver/Socket.php similarity index 98% rename from library/think/debug/Socket.php rename to library/think/log/driver/Socket.php index 2f604ef9..facdf0e3 100644 --- a/library/think/debug/Socket.php +++ b/library/think/log/driver/Socket.php @@ -9,9 +9,7 @@ // | Author: luofei614 // +---------------------------------------------------------------------- -namespace think\debug; - -use think\Response; +namespace think\log\driver; /** * github: https://github.com/luofei614/SocketLog @@ -57,11 +55,10 @@ class Socket /** * 调试输出接口 * @access public - * @param Response $response Response对象 * @param array $log 日志信息 * @return bool */ - public function output(Response $response, array $log = []) + public function save(array $log = []) { if (!$this->check()) { return false;