Add log rotation utility with file management and cleanup

- Implemented log rotation module with configurable size and age-based log management
- Added utility functions to parse log file sizes and retention durations
- Created methods for identifying, filtering, and cleaning up old log files
- Integrated log rotation initialization in the main application entry point
- Added periodic checks for log file size and age-based cleanup
This commit is contained in:
jango-blockchained
2025-02-03 15:43:27 +01:00
parent 1753e35cd3
commit 51c1594f2f
3 changed files with 160 additions and 0 deletions

View File

@@ -40,6 +40,7 @@
"@types/ajv": "^1.0.0",
"@types/express": "^4.17.21",
"@types/express-rate-limit": "^6.0.0",
"@types/glob": "^8.1.0",
"@types/helmet": "^4.0.0",
"@types/jest": "^29.5.14",
"@types/node": "^20.17.16",