hyperf/logger 文档错误修改 (#561)

This commit is contained in:
WanglinGuo 2019-09-11 11:00:56 +08:00 committed by 李铭昕
parent 6eca089119
commit af7f106b17

View File

@ -58,8 +58,8 @@ class DemoService
public function __construct(LoggerFactory $loggerFactory) public function __construct(LoggerFactory $loggerFactory)
{ {
// default 对应 config/autoload/logger.php 内的 key // 第一个参数对应日志的 name, 第二个参数对应 config/autoload/logger.php 内的 key
$this->logger = $loggerFactory->get('default'); $this->logger = $loggerFactory->get('log', 'default');
} }
public function method() public function method()