Repository navigation
Expand file tree
/
Copy pathappsettings.json
More file actions
62 lines (61 loc) · 1.78 KB
/
Copy pathappsettings.json
File metadata and controls
62 lines (61 loc) · 1.78 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
59
60
61
62
{
"Settings": {
"PersistenceFile": "poolcontrolviewmodel.json",
"PersistenceSaveIntervalInSec": 60,
"BaseTopic": {
"Command": "PoolControl/cmd/",
"State": "PoolControl/state/"
},
"LWT": {
"ConnectMessage": "Connected",
"DisconnectMessage": "Disconnected",
"Topic": "PoolControlControl/LWT"
},
"MQTT": {
"Password": "letsdoit",
"Port": 1883,
"Server": "192.168.39.104",
"User": "openhabian"
}
},
"Serilog": {
"Using": [ "Serilog.Sinks.File","Serilog.Sinks.Console","Serilog.Sinks.Syslog" ],
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Debug",
"System": "Debug"
}
},
"Enrich": [ "FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId" ],
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {Level:u3}][{ProcessId}][{ThreadId}] {Message:lj} <s:{SourceContext}>{NewLine}{Exception}"
}
},
{
"Name": "File",
"Args": {
"path": "log.txt",
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {Level:u3}][{ProcessId}][{ThreadId}] {Message:lj} <s:{SourceContext}>{NewLine}{Exception}",
"rollOnFileSizeLimit": true,
"fileSizeLimitBytes": 419430400,
"retainedFileCountLimit": 10,
"rollingInterval": "Day"
}
},
{
"Name": "UdpSyslog",
"Args": {
"outputTemplate": "[{Timestamp:fff}] [{Level:u3}][{ProcessId}][{ThreadId}] {Message:lj} {Exception}",
"host": "192.168.39.104",
"port": 514,
"format": "RFC3164",
"secureProtocols": "SecureProtocols.None"
}
}
]
}
}