Also elevates the currently-open step's status to "warning" (unless it
is already "error"), so the step's close line renders the elevated
glyph even though the enclosing function returns normally.
Arguments
- msg
Character scalar.
- close
Logical. When
TRUE, force-close the enclosing section after this line: the line is shown as the section's terminal (corner) line and itsDoneline is suppressed. Defaults toFALSE.- summary
Whether to record this line in the
logtree_summary()digest.NA(default) records it only when it is a warning or error;TRUEalways records it;FALSEnever does.
Examples
logtree_reset()
log_warn("Retry 1/3 due to timeout")
#> ⚠ Retry 1/3 due to timeout
