It is sometimes desirable to log messages while rendering the spinner. Users can do this currently is by not setting a StopMessage and using Stop + Start to temporarily pause the spinner, remove the spinner text and log the message to standard output (example program below).
While this does work, I think it is worthwhile to add a spinner.LogMessage API that adds this functionality. Would love to contribute changes here if this idea makes sense.
It is sometimes desirable to log messages while rendering the spinner. Users can do this currently is by not setting a
StopMessage
and usingStop
+Start
to temporarily pause the spinner, remove the spinner text and log the message to standard output (example program below).While this does work, I think it is worthwhile to add a
spinner.LogMessage
API that adds this functionality. Would love to contribute changes here if this idea makes sense.