feat: add export statistics tracking for user data downloads

This commit is contained in:
bot
2024-12-17 12:10:02 +00:00
parent a1945f7442
commit c854ba2cf1
5 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG) # Set the logging level
# Create a file handler
file_handler = logging.FileHandler('app.log')
file_handler = logging.FileHandler("app.log")
file_handler.setLevel(logging.DEBUG) # Set the level for this handler
# Create a console handler (optional, for logging to the console too)
@@ -13,7 +13,7 @@ console_handler = logging.StreamHandler()
console_handler.setLevel(logging.INFO)
# Create a logging format
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
file_handler.setFormatter(formatter)
console_handler.setFormatter(formatter)