Skip to main content

use_pretty_output

Function use_pretty_output 

Source
pub fn use_pretty_output() -> bool
Expand description

Pretty-printed to an interactive TTY, structured JSON otherwise (containers/CI) — mirrors targets::typescript’s log-transport.ts TTY-detection logic. Checks stderr, not stdout: that’s where logs are actually written (see logger::init_logging), since stdout is reserved for the MCP stdio transport’s JSON-RPC frames.