Skip to content

Commit

Permalink
匹配文档
Browse files Browse the repository at this point in the history
  • Loading branch information
walterlv committed Aug 22, 2024
1 parent 96d155a commit 4bc04ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ internal static class LoggerStartup
// 设置日志级别为 Debug。
.WithLevel(LogLevel.Debug)
// 添加一个控制台日志写入器,这样控制台里就可以看到日志输出了。
.AddWriter(new ConsoleLogger()
.AddConsoleLogger(b => b
.WithThreadSafe(LogWritingThreadMode.ProducerConsumer)
.FilterConsoleTagsFromCommandLineArgs(args))
// 如果有一些库使用了本日志框架(使用源生成器,不带依赖的那种),那么可以通过这个方法将它们的日志桥接到本日志框架中。
.AddBridge(LoggerBridgeLinker.Default)
Expand Down

0 comments on commit 4bc04ff

Please sign in to comment.