What is the right way to perform hierarchical logging in Emacs Lisp?
As a representative example…
(scoped-message "baking cake" (progn (scoped-message "making batter" (progn (scoped-message "whisking eggs" (whisk-eggs)) …)) …))
I would like to see something like
baking cake → making batter → whisking eggs in the Messages butter and in the mode line.
Is there a library, macro, or standard idiom that makes this easy?
straight.el does this when building dependent libraries (e.g.
building org-drill → org-contrib), but it's built in a very custom way. Is there a standard solution available?