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.
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.