Game-defined log categories #60

Open
UnflavoredMeson/Primal_Plus_Plus
opened 2026-11-24 20:16:06 +00:00 by UnflavoredMeson · 0 comments
Owner

Why

Games want their own categories to filter in the log panel, not everything under script.

Decided

  • Categories registered by name at run time; the built-in ones stay an enum.
  • The log panel filters by category.

Read first

  • UnflavoredMeson/Primal#34.

Steps

  • 1. Add runtime categories with tests.
  • 2. Add the filter to the log panel.

Done when

  • A game's category shows and filters in the editor; tests pass; 0 warnings; tidy 0.

Claude can help with

  • Keeping the ring buffer's layout stable.

Learn

  • Why the built-in categories can stay compile-time.
## Why Games want their own categories to filter in the log panel, not everything under `script`. ## Decided - Categories registered by name at run time; the built-in ones stay an enum. - The log panel filters by category. ## Read first - `UnflavoredMeson/Primal#34`. ## Steps - [ ] 1. Add runtime categories with tests. - [ ] 2. Add the filter to the log panel. ## Done when - [ ] A game's category shows and filters in the editor; tests pass; 0 warnings; tidy 0. ## Claude can help with - Keeping the ring buffer's layout stable. ## Learn - Why the built-in categories can stay compile-time.
Sign in to join this conversation.
No description provided.