mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 10:47:44 +08:00
hyperf/logger 文档错误修改 (#561)
This commit is contained in:
parent
6eca089119
commit
af7f106b17
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user