Skip to content

Commit

Permalink
补链接
Browse files Browse the repository at this point in the history
  • Loading branch information
walterlv committed Sep 12, 2024
1 parent 0ec017f commit aeaa0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ internal static class LoggerStartup
internal partial class LoggerBridgeLinker;
```

当然,在你的应用程序中,日志级别通常不是写死在代码里的,往往需要从命令行参数、环境变量、配置文件等位置读取。那么可通过 `LogLevel.Parse` 方法将字符串解析为日志级别,相比于普通枚举的解析,此方法额外支持日志级别的常见别名。
当然,在你的应用程序中,日志级别通常不是写死在代码里的,往往需要从命令行参数、环境变量、配置文件等位置读取。那么可通过 `LogLevelParser.Parse` 方法将字符串解析为日志级别,相比于普通枚举的解析,此方法额外支持日志级别的常见别名。支持的别名请参见 [LogLevelParser.cs](https://github.com/dotnet-campus/dotnetCampus.Logger/blob/main/src/dotnetCampus.Logger/LogLevelParser.cs) 的注释

### 日志过滤规则

Expand Down

0 comments on commit aeaa0c0

Please sign in to comment.