From 5206d6c6658440cd08b572f6356ae6360d247cb1 Mon Sep 17 00:00:00 2001 From: KaneLeung Date: Mon, 8 May 2023 06:26:12 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=80=20=E6=9B=B4=E6=AD=A3=E6=96=87?= =?UTF-8?q?=E6=A1=A3SetCategory=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: KaneLeung --- handbook/docs/logging.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handbook/docs/logging.mdx b/handbook/docs/logging.mdx index 3f32332d5b..333b1bcebc 100644 --- a/handbook/docs/logging.mdx +++ b/handbook/docs/logging.mdx @@ -229,7 +229,7 @@ Log.Critical("Critical"); "程序出现异常啦".LogError(); -"这是自定义类别日志".SetCategory("类别").LogInformation(); +"这是自定义类别日志".SetCategory().LogInformation(); ``` 通过字符串拓展方式可以在任何时候方便记录日志,专门为懒人提供的。 -- Gitee