From 5473b2b5270b5b77ed5387300982330d0fea0b3f Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Wed, 8 Jan 2025 18:13:23 +1030 Subject: [PATCH] feat: add 'hash' logger with console, file, and hash_file handlers --- backend/app/init.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/app/init.py b/backend/app/init.py index 38eea8d..89568ba 100644 --- a/backend/app/init.py +++ b/backend/app/init.py @@ -68,6 +68,13 @@ def setup_logging(): 'propagate': False }, + # The 'hash' logger uses all three handlers + 'hash': { + 'level': 'INFO', + 'handlers': ['console', 'file', 'hash_file'], + 'propagate': False + }, + # Example: Keep these if you want separate loggers 'werkzeug': { 'level': 'INFO',