Enhance logging system and update dependencies

- Updated `.gitignore` to exclude log files from version control.
- Added `pytest` as a dependency in `pyproject.toml` for testing purposes.
- Included `pytest` in `uv.lock` to ensure consistent dependency management.
- Introduced comprehensive documentation for the new unified logging system in `docs/logging.md`, detailing features, usage, and configuration options.
This commit is contained in:
Vasily.onl
2025-05-30 19:54:56 +08:00
parent 8a378c8d69
commit b7263b023f
7 changed files with 827 additions and 0 deletions

View File

@@ -24,13 +24,16 @@
- `scripts/dev.py` - Development setup and management script
- `scripts/init_database.py` - Database initialization and verification script
- `scripts/test_models.py` - Test script for SQLAlchemy models integration verification
- `utils/logger.py` - Enhanced unified logging system with verbose console output, automatic cleanup, and configurable retention [USE THIS FOR ALL LOGGING]
- `alembic.ini` - Alembic configuration for database migrations
- `requirements.txt` - Python dependencies managed by UV
- `docker-compose.yml` - Docker services configuration with TimescaleDB support
- `tests/test_strategies.py` - Unit tests for strategy implementations
- `tests/test_bot_manager.py` - Unit tests for bot management functionality
- `tests/test_data_collection.py` - Unit tests for data collection and aggregation
- `tests/test_logging_enhanced.py` - Comprehensive unit tests for enhanced logging features (16 tests)
- `docs/setup.md` - Comprehensive setup guide for new machines and environments
- `docs/logging.md` - Complete documentation for the enhanced unified logging system
## Tasks
@@ -43,6 +46,7 @@
- [x] 1.6 Setup Redis for pub/sub messaging
- [x] 1.7 Create database migration scripts and initial data seeding
- [x] 1.8 Unit test database models and connection utilities
- [x] 1.9 Add unified logging system we can use for all components
- [ ] 2.0 Market Data Collection and Processing System
- [ ] 2.1 Implement OKX WebSocket API connector for real-time data