- assigned_to: graydon
Originally created by: MonsieurNicolas
We need to get some insight into what Soroban is doing when debugging issues as to speed up investigations.
In the host, the functionality should be "0 overhead", ie if not logging at TRACE level nothing should happen (other than check for a bool).
Logging should occur "real time" (ie: env should call back core as to emit logs right away) as to assist debugging when combined with the use of a debugger for example (or in case there is some crash).
As this is used when debugging core only, there is no need to check for any limit (and expect the overhead to be potentially significant).
When the "Tx" partition is at "TRACE" level, emit:
There might be more things to log in that way, but this should be a good start.