JdeRobot / JdeRobot/PerceptionMetrics

Enhancement: Add structured logging system across the codebase

Open
#516 1 comment 0 reactions 1 assignee Claimed by @priyan17singh View on GitHub
Dominant language
Python
Stars
112
Forks
109
PR merge metrics
No merged PRs in 30d

Description

### 📌 Description
Currently, the PerceptionMetrics repository lacks a proper **structured logging system**. Most outputs are handled through basic `print()` statements or implicit console outputs via CLI/GUI.

This makes it difficult to:
- Debug evaluation pipelines
- Trace errors in large-scale experiments
- Monitor execution flow
- Maintain consistency across modules

---

### ⚠️ Current Limitations
- No log levels (`DEBUG`, `INFO`, `WARNING`, `ERROR`)
- No centralized logging configuration
- No support for logging to files
- Debugging requires manual print insertion

---

### 💡 Proposed Solution

Introduce a **centralized and configurable logging system** across the project.

#### Core Features:
1. Replace `print()` statements with `logging`
2. Implement logging levels `DEBUG INFO WARNING ERROR`.
3. Add a global logging configuration ` logging_config.py`
4. File Logging i.e. save logs to /logs directory.

---

### Willing to Contribute

I’d be happy to work on this issue and submit a PR if it aligns with the project goals.
Please let me know if this approach looks good or if you’d like any modifications.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.