Skip to content

feat(logger): add level filtering and warn method to ConsoleRuntimeLogger - #208

Open
rafaio1 wants to merge 2 commits into
Lilly-Protocol:mainfrom
rafaio1:bounty/issue-133-console-logger-level-filter
Open

feat(logger): add level filtering and warn method to ConsoleRuntimeLogger#208
rafaio1 wants to merge 2 commits into
Lilly-Protocol:mainfrom
rafaio1:bounty/issue-133-console-logger-level-filter

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 26, 2026

Copy link
Copy Markdown

Summary

Implements level-based filtering for ConsoleRuntimeLogger as specified in #133.

Changes

  • Added LogLevel type (debug, info, warn, error)
  • Added ConsoleRuntimeLoggerOptions interface with optional level property
  • Modified log() method to filter messages below configured threshold
  • Added warn() convenience method
  • Default behavior unchanged (all levels logged when no option provided)

Tests

  • 3 new test cases covering default, error-only, and warn+ filtering
  • All tests passing (vitest run)

Bounty

Closes #133 ($45)

Payment address (TRC20 USDT): TArXsrtcuPcWYVMVeGCEnXDCJKN97CHJGn

…gger

- Add LogLevel type and ConsoleRuntimeLoggerOptions interface
- Implement level-based filtering in log() method
- Add warn() convenience method
- Add comprehensive test coverage for level filtering

Closes Lilly-Protocol#133
- Add runtime.stopped to RuntimeEventMap
- Implement AgentRuntime.stop() with idempotency guard
- Prevent restart after stop (RUNTIME_ALREADY_STOPPED)
- Add test coverage for emission, no-start, and double-stop cases

Closes Lilly-Protocol#134
@rafaio1

rafaio1 commented Aug 26, 2026

Copy link
Copy Markdown
Author

This PR also fully implements #134 (runtime.stopped event) and #135 (stop() method with RUNTIME_ALREADY_STOPPED guard). Tests cover emission, no-emit-when-not-started, and post-stop rejection.

Closes #133 ($45)
Closes #134 ($95)
Closes #135 ($85)

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.

[Bounty: $45] Add level filtering to ConsoleRuntimeLogger

1 participant