MukeshKapoor25's picture
feat(logging): implement production-grade structured logging with JSON and rotating files
f2bfacd
Raw
History Blame Contribute Delete
839 Bytes
# MongoDB
MONGODB_URI=mongodb+srv://user:password@cluster.mongodb.net/?retryWrites=true&w=majority
MONGODB_DB_NAME=cuatrolabs
# PostgreSQL
POSTGRES_HOST=82.29.164.2
POSTGRES_PORT=5432
POSTGRES_USER=cuatro_labs_user
POSTGRES_PASSWORD=your_password
POSTGRES_DB=cuatro_labs_scm
# Redis
REDIS_HOST=82.29.164.2
REDIS_PORT=6379
REDIS_PASSWORD=your_redis_password
REDIS_DB=0
# Worker Configuration
CATALOGUE_WORKERS=5
EMPLOYEE_WORKERS=3
MERCHANT_WORKERS=5
WAREHOUSE_WORKERS=3
UOM_WORKERS=2
# Logging
LOG_LEVEL=INFO
# LOG_FORMAT=json # json (default, for production/log aggregators) | console (human-readable, for local dev)
# LOG_DIR=logs # directory for rotating log files (default: logs/)
# LOG_MAX_BYTES=52428800 # max size per log file in bytes (default: 50 MB)
# LOG_BACKUP_COUNT=10 # number of rotated backups to keep