11 Commits

Author SHA1 Message Date
Daniel Pupius 2d61d369b0 Update MQTT packet handling to use protobuf structures directly
- Refactored decoder to use protobuf-defined Packet, TopicInfo, and Data structures
- Updated MQTT client and broker to work with protobuf structures directly
- Improved logging to properly serialize protobuf messages for structured output
- Optimized .logista.yaml template for cleaner, more compact log display

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-22 10:30:39 -07:00
Daniel Pupius 0784ccb958 Simplify packet construction 2025-04-21 22:34:49 -07:00
Daniel Pupius f580249162 Another checkpoint moving to proto defined packets 2025-04-21 18:27:55 -07:00
Daniel Pupius 0f151c31b9 Improve structured logging for better log aggregation
- Add message type prefix in brief mode for quick identification
- Include GatewayID in brief mode summary
- Remove formatted output from structured fields
- Use proper structured fields for each message type
- Add common fields like hopLimit and ID for all messages
- Extract specific data for position, telemetry, and text messages
- Format structured data for better log aggregation compatibility
2025-04-21 11:52:40 -07:00
Daniel Pupius 56a14fff61 Simplify MessageLogger to use structured logging only
- Remove file-based logging completely
- Add brief mode for concise log output
- Add full mode with complete message details
- Use structured logging fields for all information
- Keep console output option for readability
- Add intelligent summary handling for different message types
2025-04-21 11:19:53 -07:00
Daniel Pupius c6d94b10d1 Inject loggers from main.go instead of creating them locally
- Update all components to accept a logger parameter
- Add default fallbacks when logger is not provided
- Ensure consistent logger naming with parent.Named() pattern
- Create a proper logger hierarchy originating from main.go
- Update MessageLogger to pass logger to BaseSubscriber
2025-04-21 11:09:27 -07:00
Daniel Pupius 9447f44139 Update logging to use prefab/logging package
- Replace standard log package with prefab/logging
- Add context-aware logging in HTTP handlers
- Add structured logging with fields and levels
- Improve logging hierarchy and namespaces
- Implement named loggers for components
2025-04-21 11:01:45 -07:00
Daniel Pupius 7c311b3386 Remove unnecessary Close() overrides from subscribers 2025-04-21 09:18:16 -07:00
Daniel Pupius b52834dd8a Add BaseSubscriber to reduce duplication between subscribers 2025-04-21 09:17:05 -07:00
Daniel Pupius ef660b2025 Consolidate display and logging functionality in MessageLogger 2025-04-21 08:52:15 -07:00
Daniel Pupius c129be3be6 Update MessageLogger to log all packet types 2025-04-20 20:13:04 -07:00