Skip to content

Commit

Permalink
docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
VahidFarahmandian committed Feb 27, 2025
1 parent 0f54cd7 commit 2447a8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 03-Infrastructure/Jinget.Logger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ builder.Host.LogToElasticSearch(blacklist);
```
`blacklist`: Log messages contain the blacklist array items will not be logged.

`blacklistUrls`: Urls/PageUrls contain the blacklistUrls array items will not be logged.

`minAllowedLoglevel`: Defines the minimum allowed log level. If log's severity is equal or greater than this value, then it will be saved in elasticsearch otherwise it will be ignored. If this parameter not set, then default log level will be applied(LogLevel.Information).

After setting the logging destination, you need to configure Elasticsearch:
Expand Down Expand Up @@ -201,6 +203,8 @@ builder.Host.LogToFile(blacklist, fileSetting);

`blacklist`: Log messages contain the blacklist array items will not be logged.

`blacklistUrls`: Urls/PageUrls contain the blacklistUrls array items will not be logged.

`minAllowedLoglevel`: Defines the minimum allowed log level. Default log level is `LogLevel.Information`.

`FileNamePrefix`: Gets or sets the filename prefix to use for log files. Defaults is `logs-`
Expand Down

0 comments on commit 2447a8f

Please sign in to comment.