hero_logger — centralized log aggregation service for the hero ecosystem #105
Labels
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/home#105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Currently, each hero service manages its own logs independently:
Inspiration
ThreeFold's logagg solves the write path — VMs stream logs via WebSocket to a file backend. But it is write-only, file-only, and not designed for the hero ecosystem.
hero_logger extends this concept with:
Architecture
Write Path
The issue is the escaped parentheses
in Mermaid — it doesn't need escaping inside edge labels. Here's the fixed version:markdown## Architecture
Write Path
Read Path
Redis Data Model
Hints
single source of truth.Definition of Done
WIP:
Implemented one server that handles all 3 communication paths:
RPC endpoint for log, load, list_sources, clear
HTTP endpoint for history retrieval
WebSocket ingest + stream endpoints
splited into 3 handlers rpc/http/ws
store layer with trait + Redis implementation
Implemented Redis data model and write/read flow
Added shared pub/sub subscription manager so multiple WS clients can fan out from a single Redis subscription per source.
no logs all need to be in hero_proc