Skip to content

Commit 00f2995

Browse files
committed
log
1 parent 511e725 commit 00f2995

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ReadMe.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,9 @@ internal sealed class ReplaceLogFilter(ConsoleAppFilter next, ILogger<Program> l
993993
}
994994
```
995995

996+
> I don't recommend using `ConsoleApp.Log` and `ConsoleApp.LogError` directly as an application logging method, as they are intended to be used as output destinations for internal framework output.
997+
> For error handling, it would be better to define your own custom filters for error handling, which would allow you to record more details when handling errors.
998+
996999
DI can also be effectively used when reading application configuration from `appsettings.json`. For example, suppose you have the following JSON file.
9971000

9981001
```json

0 commit comments

Comments
 (0)