Skip to content

feat(events): add event system and logging framework (closes #24)#61

Merged
developerfred merged 2 commits intomainfrom
feature/event-logging-system
Mar 20, 2026
Merged

feat(events): add event system and logging framework (closes #24)#61
developerfred merged 2 commits intomainfrom
feature/event-logging-system

Conversation

@developerfred
Copy link
Copy Markdown
Owner

Summary

Implements Issue #24 - Event System and Logging Framework

Event System

  • Event struct with level, topic, message, data, timestamp
  • EventLevel enum (Trace, Debug, Info, Warning, Error, Critical)
  • EventEmitter with emission, filtering, history management
  • EventSubscription for pattern-based filtering

Logging Framework

  • Logger with level filtering
  • LogEntry with structured metadata
  • InMemoryLogStorage with rotation policies (DeleteOldest, DeleteNewest, NoRotation)
  • LogCompressor for storage optimization

Test Results

  • 127 lib tests ✅
  • 24 new tests for events/logging

…ncies

Implements Issue #21 - Package Manager

- Add Package struct with name, version, dependencies, metadata
- Add Version struct with parsing, comparison (semver)
- Add PackageRegistry for storing and retrieving packages
- Add PackageResolver for dependency resolution with conflict detection
- Add 22 TDD tests covering package lifecycle, versioning, and resolution

Co-authored-by: codingsh <codingsh>
Implements Issue #24 - Event System and Logging Framework

Event System:
- Event struct with level, topic, message, data, timestamp
- EventLevel enum (Trace, Debug, Info, Warning, Error, Critical)
- EventEmitter with emission, filtering, history management
- EventSubscription for pattern-based filtering

Logging Framework:
- Logger with level filtering
- LogEntry with structured metadata
- InMemoryLogStorage with rotation policies (DeleteOldest, DeleteNewest, NoRotation)
- LogCompressor for storage optimization

- 24 new tests
@developerfred developerfred merged commit f7e81a5 into main Mar 20, 2026
3 of 4 checks passed
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.

1 participant