Renders a traced call the way the message templates do: the name, then content in parentheses,
each part colored as a template's is.
fn prints the traced function's own name and parentFn prints it behind its parent, so fn(3)
reads as calculate(3) and parentFn(3) as Checkout.calculate(3). Called with no content — or
with one that renders empty — each prints its name with empty parentheses. Text a callback writes
around a printer stays uncolored.
content is any value at all, rendered by the rule a log's own message takes: a primitive through
String(), an object or a function as one compact line, so fn(basket) reads as the basket's
contents rather than as [object Object].
Renders a traced call the way the message templates do: the name, then
contentin parentheses, each part colored as a template's is.fnprints the traced function's own name andparentFnprints it behind its parent, sofn(3)reads ascalculate(3)andparentFn(3)asCheckout.calculate(3). Called with no content — or with one that renders empty — each prints its name with empty parentheses. Text a callback writes around a printer stays uncolored.contentis any value at all, rendered by the rule a log's own message takes: a primitive throughString(), an object or a function as one compact line, sofn(basket)reads as the basket's contents rather than as[object Object].