add stdlog_log_b() api

this permits a caller to specify a formatting buffer of any size
cleanup / nit fixing