Pdf Ingestion pipeline completed

This commit is contained in:
timothyafolami
2024-08-05 22:14:19 +01:00
parent b0c3eb8032
commit c34de21971
15 changed files with 318 additions and 90 deletions
+19
View File
@@ -0,0 +1,19 @@
import logging
import logging.handlers
import os
# Create loggings directory if it doesn't exist
if not os.path.exists('loggings'):
os.makedirs('loggings')
# Define the logging configuration
LOG_FILE = 'loggings/app.log'
logging.basicConfig(level=logging.INFO,
format='%(asctime)s - %(levelname)s - %(message)s',
handlers=[
logging.FileHandler(LOG_FILE),
logging.StreamHandler()
])
logger = logging.getLogger(__name__)