Any chance we can get a realtime console stdout for print statements from Server functions/endpoints?
It’s tedious hitting the refresh button on “App Sessions” log. I tried the “View Session” view, but the problem is if you have a long output, you have to scroll back up to see the refresh button and then scroll back down.
Because of this, I need to prototype using uplink server functions on my computer and then copy/paste the function to Anvil server…it’s not an ideal workflow.
I would suggest a different function name, and a different console tab to put the results in.
Rationale
Real-time output is often visibly time-stamped (at the source), so that when you scroll back, you can see how much time elapsed between messages. This added functionality strongly suggests a different function name.
Regular print() calls can be buffered, to save bandwidth and storage. As a result, they would be interleaved irregularly with the real-time output, unless the real-time output went to a different tab/pane.
Something like this could probably be built on Python’s existing logging library, with default parameters set to suit the Anvil environment. That means existing tutorials and documentation can be leveraged, instead of re-created.