-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappsettings.json
More file actions
58 lines (58 loc) · 1.38 KB
/
appsettings.json
File metadata and controls
58 lines (58 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"Serilog": {
"Using": [
"Serilog.Sinks.Console",
"Serilog.Sinks.File",
"Serilog.Sinks.Udp"
],
"MinimumLevel": {
"Default": "Verbose",
"Override": {
"Microsoft": "Information"
}
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] [{SourceContext}] {Message:lj} {NewLine}{Exception}"
}
},
{
"Name": "File",
"Args": {
"rollingInterval": "Day",
"path": "c:\\logs\\serilog-.log"
}
},
{
"Name": "Udp",
"Args": {
"remotePort": 7071,
"family": "InterNetwork",
"remoteAddress": "localhost",
"formatter": "Serilog.Sinks.Udp.TextFormatters.Log4jTextFormatter, Serilog.Sinks.Udp"
}
}
]
},
"Settings": {
"BlacklistUrls": [
"https://twitter.com/",
"https://www.snapchat.com/",
"https://www.facebook.com/"
],
"CacheSettings": {
"ExpirationInMinutes": 2,
"Source": "Memory",
"Redis": {
"ConnectionString": "localhost:6379"
},
"SqlServer": {
"ConnectionString": "Server=localhost,1433;Database=CacheDatabase;User Id=sa;Password=@Pa5sw0rd!;TrustServerCertificate=True;",
"SchemaName": "dbo",
"TableName": "CacheTable"
}
}
}
}