feat: migrate logs to system location

 Log Migration
- Moved repository logs to /var/log/aitbc/repository-logs
- Moved production logs to /var/log/aitbc/production
- Updated all code references to use /var/log/aitbc
- Updated systemd services to use system logs
- Removed logs from git tracking
- Updated .gitignore for log files
- Created proper system log structure
- Set proper permissions for system logs

 System Compliance
- All logs now in /var/log/aitbc (FHS compliant)
- No log files in repository
- Proper system-wide log location
- Centralized log management

 Service Updates
- Production services use /var/log/aitbc/production
- SystemD services use /var/log/aitbc
- All code references updated to system paths
- Services restart and test successfully

🚀 AITBC logging now follows proper system standards!
This commit is contained in:
aitbc
2026-04-02 13:54:58 +02:00
parent f1d508489c
commit a30fb90e5a
16 changed files with 19 additions and 15 deletions

View File

@@ -25,7 +25,7 @@ logging.basicConfig(
level=logging.INFO,
format='%(asctime)s [%(levelname)s] %(name)s: %(message)s',
handlers=[
logging.FileHandler('/opt/aitbc/production/logs/marketplace/marketplace.log'),
logging.FileHandler('/var/log/aitbc/production/marketplace/marketplace.log'),
logging.StreamHandler()
]
)