phy1um / ps2-homebrew-livestreams

Repo for code written during my Playstation 2 Homebrew livestreams
MIT License
47 stars 6 forks source link

Improve Debug/Trace Logging #25

Closed phy1um closed 2 years ago

phy1um commented 2 years ago

Currently enabling debug/trace logging requires a rebuild. This is pretty cumbersome when someone wants to quickly check a drawbuffer, and the full logs can be very noisy.

Lua scripting gives us the opportunity to build APIs to control logging at runtime. We can change logging level by executing a script.

For example, run an example and allow DMA buffer logging to be switched on by pressing a button.

Release builds should still have debug/trace logging disabled, but developer builds should contain logging calls which are controlled by logic that has a Lua API.

phy1um commented 2 years ago

Done in #22