From bdc9c6a07fd86af7e7c9379b45a1871bf4e5c1f4 Mon Sep 17 00:00:00 2001 From: Axios <369017150@qq.com> Date: Thu, 15 Jun 2017 11:14:06 +0800 Subject: [PATCH] =?UTF-8?q?library/think/Log.php=20161=E8=A1=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0log=E5=AD=98=E5=82=A8=E5=AE=8C=E6=88=90=E8=A1=8C?= =?UTF-8?q?=E4=B8=BA=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 我在进行多进程异步通信操作时,需要回收子进程,但是又不要影响日志输出,试了官方给出各个行为监听,都会中断log输出。我希望在这里加一个log存储完成的行为监听,这样就可以在log存储完成后,进行子进程回收工作。 --- library/think/Log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Log.php b/library/think/Log.php index 5a658880..c77e3952 100644 --- a/library/think/Log.php +++ b/library/think/Log.php @@ -158,7 +158,7 @@ class Log if ($result) { self::$log = []; } - + Hook::listen('log_write_done',$log); return $result; } return true;