Skip to content

Conversation

@ivanleomk
Copy link
Contributor

@ivanleomk ivanleomk commented Jun 17, 2025

Important

Introduces a new logging interface for clustering with BaseClusterLogger and StandardLogger, and updates dependencies in uv.lock.

  • Logging Interface:
    • Adds BaseClusterLogger in base_classes/logger.py as an abstract base class for logging clustering experiments.
    • Implements StandardLogger in logger.py using Python's standard logging.
  • Functionality:
    • BaseClusterLogger defines methods: info, debug, warning, error, log_params, log_metrics, log_errors, log, log_artifact.
    • StandardLogger provides concrete implementations for these methods.
  • Imports and Exports:
    • Adds StandardLogger to __init__.py in kura.
    • Adds BaseClusterLogger to __init__.py in base_classes.
  • Dependencies:
    • Updates uv.lock to include cohere, fastavro, httpx-sse, types-requests.

This description was created by Ellipsis for ced5e5e. You can customize this summary. It will automatically update as commits are pushed.

- Add BaseClusterLogger abstract base class with 8 methods:
  - 4 standard logging methods: info(), debug(), warning(), error()
  - 4 clustering methods: log_params(), log_metrics(), log_errors(), log()
- Add StandardLogger implementation using Python's logging module
- Export StandardLogger in kura.__init__.py
- Add demo script log.py showing all functionality
- Clean implementation based off main branch
- Add abstract log_artifact method to BaseClusterLogger (9 methods total now)
- StandardLogger implements log_artifact as pass (no-op for basic logger)
- Updated demo script to test artifact logging
- Allows future logger implementations to handle file artifacts properly
…This file is no longer needed as it has been previously marked for removal.
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 17, 2025

Deploying kura with  Cloudflare Pages  Cloudflare Pages

Latest commit: ced5e5e
Status: ✅  Deploy successful!
Preview URL: https://18d811a0.kura-4ma.pages.dev
Branch Preview URL: https://feat-add-logging-interface.kura-4ma.pages.dev

View logs

Copy link
Contributor

@jxnl jxnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't do this, just log.info and use extras

then implement log handlers instead

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants