Logging, envvars and launch profile

This commit is contained in:
Emanuele Trabattoni
2025-05-02 10:01:35 +02:00
parent 267416395e
commit 2b20b22f7f
2 changed files with 98 additions and 21 deletions

25
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,25 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Tikmon",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"env": {
"INTERVAL" : "5",
"INFLUXDB_TOKEN":"rg5dZrBHQxJTH4Etq2jmDduggCC28QaWcua0VVvW4hjsEVhy_JUpVhcyg-aLAbM-TXv92pTB7IGJlyAPvi7Kvw==",
"INFLUXDB_URL" : "http://10.0.2.249:4567",
"INFLUXDB_ORG" : "edelweiss",
"INFLUXDB_BUCKET" : "router",
"MIKROTIK_IP": "10.128.0.1",
"MIKROTIK_USER": "service",
"MIKROTIK_PASSWORD": "edxservice",
"LOG_FILE": "D:\\Test\\routermon.log",
"LOG_FILE_LVL": "WARNING",
"LOG_CLI_LVL": "DEBUG"
}
}
]
}