-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try to write the logs * Another creds * Fix * Api can write logs into elasticsearch * Web is also put logs into elasticsearch
- Loading branch information
1 parent
0bc4e19
commit 35137d7
Showing
12 changed files
with
135 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,2 @@ | ||
{ | ||
"Serilog": { | ||
"WriteTo": [ | ||
{ | ||
"Name": "Logger", | ||
"Args": { | ||
"configureLogger": { | ||
"MinimumLevel": "Verbose", | ||
"WriteTo": [ | ||
{ | ||
"Name": "Console", | ||
"Args": { | ||
"outputTemplate": "[{Timestamp:o} {Level:u3}] ({Application}/{MachineName}/{ThreadId}) {Message}{NewLine}{Exception}", | ||
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console", | ||
"formatter": "Serilog.Formatting.Compact.RenderedCompactJsonFormatter,Serilog.Formatting.Compact" | ||
} | ||
} | ||
] | ||
}, | ||
"restrictedToMinimumLevel": "Verbose" | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,2 @@ | ||
{ | ||
"Sentry": { | ||
"IncludeRequestPayload": true | ||
}, | ||
"Serilog": { | ||
"WriteTo": [ | ||
{ | ||
"Name": "Logger", | ||
"Args": { | ||
"configureLogger": { | ||
"MinimumLevel": "Verbose", | ||
"WriteTo": [ | ||
{ | ||
"Name": "Console", | ||
"Args": { | ||
"outputTemplate": "[{Timestamp:o} {Level:u3}] ({Application}/{MachineName}/{ThreadId}) {Message}{NewLine}{Exception}", | ||
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console", | ||
"formatter": "Serilog.Formatting.Compact.RenderedCompactJsonFormatter,Serilog.Formatting.Compact" | ||
} | ||
} | ||
] | ||
}, | ||
"restrictedToMinimumLevel": "Verbose" | ||
} | ||
}, | ||
{ | ||
"Name": "Async", | ||
"Args": { | ||
"configure": [ | ||
{ | ||
"Name": "File", | ||
"Args": { | ||
"path": "logs/root.log", | ||
"rollingInterval": "Day", | ||
"outputTemplate": "{Timestamp:o} [{Level:u3}] ({Application}/{MachineName}/{ThreadId}/{ThreadName}) {Message}{NewLine}{Exception}", | ||
"formatter": "Serilog.Formatting.Compact.RenderedCompactJsonFormatter,Serilog.Formatting.Compact" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"Name": "Sentry", | ||
"Args": | ||
{ | ||
"MinimumBreadcrumbLevel": "Debug", | ||
"MinimumEventLevel": "Error" | ||
} | ||
}, | ||
{ | ||
"Name": "Elasticsearch", | ||
"Args": | ||
{ | ||
"nodeUris": "http://elk.chertopolokh.ru:9200", | ||
"connectionGlobalHeaders": "Authorization=Basic ZWxhc3RpYzpwOHV3VTl5Ym40RzJKTVNI", | ||
"indexFormat": "custom-index-{0:yyyy.MM}", | ||
"templateName": "myCustomTemplate", | ||
"minimumLogEventLevel": "Information" | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,14 +10,72 @@ | |
"TicketStore.Api": "Verbose" | ||
} | ||
}, | ||
"Enrich": ["WithThreadId", "FromLogContext", "WithMachineName"], | ||
"Enrich": ["WithThreadId", "FromLogContext", "WithMachineName", "WithEnvironmentName"], | ||
"Properties": { | ||
"Application": "TicketStore.Api" | ||
} | ||
}, | ||
"WriteTo": [ | ||
{ | ||
"Name": "Logger", | ||
"Args": { | ||
"configureLogger": { | ||
"MinimumLevel": "Verbose", | ||
"WriteTo": [ | ||
{ | ||
"Name": "Console", | ||
"Args": { | ||
"outputTemplate": "[{Timestamp:o} {Level:u3}] ({Application}/{MachineName}/{ThreadId}) {Message}{NewLine}{Exception}", | ||
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console", | ||
"formatter": "Serilog.Formatting.Compact.RenderedCompactJsonFormatter,Serilog.Formatting.Compact" | ||
} | ||
} | ||
] | ||
}, | ||
"restrictedToMinimumLevel": "Verbose" | ||
} | ||
}, | ||
{ | ||
"Name": "Async", | ||
"Args": { | ||
"configure": [ | ||
{ | ||
"Name": "File", | ||
"Args": { | ||
"path": "logs/root.log", | ||
"rollingInterval": "Day", | ||
"outputTemplate": "{Timestamp:o} [{Level:u3}] ({Application}/{MachineName}/{ThreadId}/{ThreadName}) {Message}{NewLine}{Exception}", | ||
"formatter": "Serilog.Formatting.Compact.RenderedCompactJsonFormatter,Serilog.Formatting.Compact" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"Name": "Sentry", | ||
"Args": | ||
{ | ||
"MinimumBreadcrumbLevel": "Debug", | ||
"MinimumEventLevel": "Error" | ||
} | ||
}, | ||
{ | ||
"Name": "Elasticsearch", | ||
"Args": | ||
{ | ||
"nodeUris": "https://kolenka-inc-4135333449.eu-central-1.bonsaisearch.net", | ||
"indexFormat": "filebeat-7.10.2-{0:yyyy.MM.dd}", | ||
"minimumLogEventLevel": "Information", | ||
"connectionGlobalHeaders": "Authorization=Bearer Zm10dWNlcmMwbTpnMXpiZmJqOGx5", | ||
"templateName": "ticketStoreTemplate", | ||
"autoRegisterTemplate": true, | ||
"autoRegisterTemplateVersion": "ESv7" | ||
} | ||
} | ||
] | ||
}, | ||
"Sentry": { | ||
"Dsn": "https://[email protected]/1418218", | ||
"IncludeRequestPayload": false | ||
"IncludeRequestPayload": true | ||
}, | ||
"YandexObjectStorage": { | ||
"Protocol":"https", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,2 @@ | ||
{ | ||
"Serilog": { | ||
"WriteTo": [ | ||
{ | ||
"Name": "Logger", | ||
"Args": { | ||
"configureLogger": { | ||
"MinimumLevel": "Verbose", | ||
"WriteTo": [ | ||
{ | ||
"Name": "Console", | ||
"Args": { | ||
"outputTemplate": "[{Timestamp:o} {Level:u3}] ({Application}/{MachineName}/{ThreadId}) {Message}{NewLine}{Exception}", | ||
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console", | ||
"formatter": "Serilog.Formatting.Compact.RenderedCompactJsonFormatter,Serilog.Formatting.Compact" | ||
} | ||
} | ||
] | ||
}, | ||
"restrictedToMinimumLevel": "Verbose" | ||
} | ||
}, | ||
{ | ||
"Name": "Async", | ||
"Args": { | ||
"configure": [ | ||
{ | ||
"Name": "File", | ||
"Args": { | ||
"path": "logs/root.log", | ||
"rollingInterval": "Day", | ||
"outputTemplate": "{Timestamp:o} [{Level:u3}] ({Application}/{MachineName}/{ThreadId}/{ThreadName}) {Message}{NewLine}{Exception}", | ||
"formatter": "Serilog.Formatting.Compact.RenderedCompactJsonFormatter,Serilog.Formatting.Compact" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.