Configure Output Type and Colorization
mastertslog defaults to pretty output.
Behavior by Environment:
- Interactive TTY:
prettywith colors. - Piped/Redirected/CI:
prettywithout ANSI colors. - Browser/React Native:
prettyusing CSS styling.
Switching to JSON:
Structured json output is opt-in. You can enable it by:
- Setting
type: "json"in the config. - Setting the environment variable
TSLOG_TYPE=json. - Using
Logger.fromEnv()which readsTSLOG_TYPE.
Color Control:
NO_COLOR: Disables colors (follows no-color.org).FORCE_COLOR: Forces colorized pretty output.