Use logging.append config for logging
MODIFY
plex_trakt_sync/logging.py
plex_trakt_sync/logging.py
@@ -15,7 +15,8 @@ def initialize():
console_handler.setLevel(logging.INFO)
# file handler can log down to debug messages
- file_handler = logging.FileHandler(log_file, 'w', 'utf-8')
+ mode = "a" if CONFIG['logging']['append'] else "w"
+ file_handler = logging.FileHandler(log_file, mode, 'utf-8')
file_handler.setFormatter(logging.Formatter("%(asctime)-15s %(levelname)s[%(name)s]:%(message)s"))
file_handler.setLevel(logging.DEBUG)

Use logging.append config for logging