Add logging & syslog support to unfurler

This commit is contained in:
Mononaut
2022-09-15 18:35:37 +00:00
parent 2cd7e8d870
commit 95362ec19b
6 changed files with 216 additions and 13 deletions

View File

@@ -1,7 +1,8 @@
{
"SERVER": {
"HOST": "http://localhost",
"HTTP_PORT": 4201
"HTTP_PORT": 4201,
"STDOUT_LOG_MIN_PRIORITY": "debug",
},
"MEMPOOL": {
"HTTP_HOST": "http://localhost",
@@ -14,5 +15,12 @@
"EXEC_PATH": "/usr/local/bin/chrome", // optional
"MAX_PAGE_AGE": 86400, // maximum lifetime of a page session (in seconds)
"RENDER_TIMEOUT": 3000, // timeout for preview image rendering (in ms) (optional)
},
"SYSLOG": {
"ENABLED": true,
"HOST": "127.0.0.1",
"PORT": 514,
"MIN_PRIORITY": "info",
"FACILITY": "local7"
}
}