Skip to content

Commit

Permalink
add disabled & console formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
gevorg.kesyan committed Jan 31, 2024
1 parent 3969048 commit 6eacb24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Aerx.Serilog.Sinks.Loki.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UserDictionary/Words/=Aerx/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Aerx/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=enrichers/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ There is a full description of section that is needed in appsettings.json.
```
{
"Loki": {
"Disabled": false,
"AppName": "app-name",
"TenantId: "admin",
"Labels": {
Expand Down Expand Up @@ -76,10 +77,11 @@ There is a full description of section that is needed in appsettings.json.
- `UseInternalTimestamp` (default = false) - if `true` use internalTimestamp from log
- `LeavePropertiesIntact` (default = false) - if `true` logger remove not-labeled properties from logEvent, so formatter select only PropertiesAsLabels
- `SkipReqResWithHeaders` (default = null) - list of headers which should be ignored during logging

- `Disabled` (default = null) - if true, then turn off direct to loki logging
```
{
"Loki": {
"Disabled": false,
"TenantId: "admin",
"SuppressProperties": [
"EventId",
Expand Down

0 comments on commit 6eacb24

Please sign in to comment.