Skip to content

Feature Request: Centralized Logger #121

Description

@NitinDatta8

Summary
Create a centralized logging utility that can be shared across all modules and services. This will standardize our logging format, reduce redundancy, and make log aggregation and debugging much easier.

Why?
A central logger simplifies debugging and enhances maintainability by enforcing consistent log structure. It can also help in:

  • Setting global log levels
  • Integrating structured logs (e.g., JSON format)
  • Adding contextual metadata (e.g., service name, request ID)

Future Integration
Once in place, this logger can be extended to pipe logs into external monitoring tools like:

  • Grafana (via Loki for log visualization)
  • Prometheus (for custom log metrics)

Proposed Tasks

  • Design and implement a logger.py or equivalent utility
  • Allow environment-based configuration (e.g., debug in dev, warning in prod)
  • Add support for stdout, file, and optional external transports
  • Add examples and documentation for usage
  • Prepare for integration with observability tools (Grafana/Prometheus)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions