Skip to contents

Leaf lines below this level are silently skipped: log_debug() counts as "debug", log_info() and log_success() count as "info", log_warn() as "warn", log_error() as "error". Step open/close lines always render regardless of verbosity, since hiding them would break the tree structure.

Usage

logtree_threshold(level = c("debug", "info", "warn", "error"))

Arguments

level

One of "debug", "info", "warn", "error" (case-insensitive).

Value

NULL, invisibly.

Details

This is the default for every sink; a sink registered with its own threshold ignores it (see logtree_sink_file() and logtree_sink()), which is what lets a debug-level log file coexist with an ordinary console.

Verbosity governs rendering only, never what the run remembers. A suppressed log_warn()/log_error() still elevates the enclosing step's close glyph, and still reaches the logtree_summary() digest – what is hidden is the leaf line's own text, not the fact that it happened.

See also

logtree_sink_file() and logtree_sink() for per-sink thresholds.

Examples

logtree_threshold("info")