This file contains hidden or 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
public static class LoggerExtensions | |
{ | |
public static ILogger ForHere( | |
this ILogger logger, | |
[CallerFilePath] string sourceFile = null, | |
[CallerLineNumber] int sourceLine = 0) | |
{ | |
return logger | |
.ForContext("SourceFile", sourceFile) | |
.ForContext("SourceLine", sourceLine); |
This file contains hidden or 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
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
CREATE TABLE [Logs]( | |
[Id] [int] IDENTITY(1,1) NOT NULL, | |
[Message] [nvarchar](max) NULL, | |
[MessageTemplate] [nvarchar](max) NULL, |
This file contains hidden or 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
{ | |
"template": "logstash*", | |
"settings": { | |
"index.analysis.analyzer.default.stopwords": "_none_", | |
"index.number_of_replicas": "1", | |
"index.query.default_field": "message", | |
"index.refresh_interval": "5s", | |
"index.number_of_shards": "4", | |
"index.store.compress.stored": "true", | |
"index.analysis.analyzer.default.type": "standard", |
NewerOlder