Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate Watchtower logging into swarms #704

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vishwamartur
Copy link

@vishwamartur vishwamartur commented Dec 26, 2024

Related to #702

Integrate Watchtower for optional logging to AWS CloudWatch Logs.

  • Watchtower Integration:

    • Import watchtower in swarms/utils/loguru_logger.py.
    • Add initialize_watchtower_logger function to configure Watchtower logging.
    • Update initialize_logger to optionally use Watchtower logging if configured.
  • Agent Logging Updates:

    • Import initialize_watchtower_logger in swarms/agents/ape_agent.py, swarms/agents/tool_agent.py, and swarms/structs/agent.py.
    • Update logger initialization in swarms/agents/ape_agent.py and swarms/agents/tool_agent.py to use initialize_watchtower_logger.
  • Terraform Configuration:

    • Add terraform/logging.tf to create log groups and policies for AWS CloudWatch Logs.

📚 Documentation preview 📚: https://swarms--704.org.readthedocs.build/en/704/

Related to kyegomez#702

Integrate Watchtower for optional logging to AWS CloudWatch Logs.

* **Watchtower Integration:**
  - Import `watchtower` in `swarms/utils/loguru_logger.py`.
  - Add `initialize_watchtower_logger` function to configure Watchtower logging.
  - Update `initialize_logger` to optionally use Watchtower logging if configured.

* **Agent Logging Updates:**
  - Import `initialize_watchtower_logger` in `swarms/agents/ape_agent.py`, `swarms/agents/tool_agent.py`, and `swarms/structs/agent.py`.
  - Update logger initialization in `swarms/agents/ape_agent.py` and `swarms/agents/tool_agent.py` to use `initialize_watchtower_logger`.

* **Terraform Configuration:**
  - Add `terraform/logging.tf` to create log groups and policies for AWS CloudWatch Logs.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hello there, thank you for opening an PR ! 🙏🏻 The team was notified and they will get back to you asap.

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

Successfully merging this pull request may close these issues.

1 participant