Skip to content

Conversation

@karnkaul
Copy link
Member

@karnkaul karnkaul commented Oct 24, 2022

Upgrade logger to:

  • Keep an "elastic" buffer of logs, referenced by the editor's log window
  • Also log to the VS debugger console
  • Also log to a file (facade.log) asynchronously
  • Populate / reset the file logger and clear the buffer using an RAII Instance

Also:

  • Add AsyncQueue<T>: "sleepy", efficient, offers blocking and non blocking APIs
  • Fix CI script to also run on pushes to branches
  • Expand and upgrade editor types
    • Support child windows
    • Add RAII StyleVar

Risks:

  • logger::Instance is created outside try block in main
    • solve for above

Close #9

- Expand and document editor wrappers.
- Upgrade logging internals, formalize `logger::Entry`.
- Display prototype main menu.
- Reflect log buffer in editor window (prototype).
Not triggering on pushes.
Risk: `std::jthread`, `std::stop_token` may not compile on Pi g++ yet.
@karnkaul karnkaul marked this pull request as ready for review October 24, 2022 02:49
- This maintains a strict DAG of directories, which can be turned into libraries later: util <= vk <= glfw <= dear_imgui <= scene <= engine, editor
This DAG is currently loosely reflected in the order of sources in CMakeLists.txt.
@karnkaul karnkaul merged commit 5556025 into main Oct 24, 2022
@karnkaul karnkaul deleted the karnage/main-menu branch October 24, 2022 05:23
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.

Refactor logging

1 participant