Refactor logging configuration to use AppData directory

- Updated config.example.json to set default log_file to null.
- Modified config.py to resolve log file paths relative to the AppData directory.
- Added methods to get default log directory and log file path in AppData.
- Ensured logging behavior is consistent whether a log_file is specified or not.
This commit is contained in:
claudi 2026-02-20 07:45:21 +01:00
parent b3fd61aed2
commit a8aa54fa5e
8 changed files with 2932 additions and 2884 deletions

View file

@ -10,7 +10,8 @@ WEBAPP_URL=file:///./webapp/index.html
# Logging
LOG_LEVEL=DEBUG
LOG_FILE=logs/webdrop_bridge.log
# LOG_FILE defaults to AppData/Roaming/webdrop_bridge/logs/webdrop_bridge.log if not set
# LOG_FILE=logs/webdrop_bridge.log
ENABLE_LOGGING=true
# Security - Path Whitelist