From af7f106b1724b1e0d26b5e935800272d1faa1b42 Mon Sep 17 00:00:00 2001 From: WanglinGuo <47772108+WanglinGuo@users.noreply.github.com> Date: Wed, 11 Sep 2019 11:00:56 +0800 Subject: [PATCH] =?UTF-8?q?hyperf/logger=20=E6=96=87=E6=A1=A3=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=AE=E6=94=B9=20(#561)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/zh/logger.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/zh/logger.md b/doc/zh/logger.md index 7e1ad4269..a62fe5171 100644 --- a/doc/zh/logger.md +++ b/doc/zh/logger.md @@ -58,8 +58,8 @@ class DemoService public function __construct(LoggerFactory $loggerFactory) { - // default 对应 config/autoload/logger.php 内的 key - $this->logger = $loggerFactory->get('default'); + // 第一个参数对应日志的 name, 第二个参数对应 config/autoload/logger.php 内的 key + $this->logger = $loggerFactory->get('log', 'default'); } public function method()