Skip to content

Release v0.13.14: Colored logging output

Choose a tag to compare

@jwesleye jwesleye released this 20 Oct 16:25
· 46 commits to main since this release

Release v0.13.14

New Features

Colored Logging Output

  • Added colored [module] prefixes to logging output when running in interactive terminals
  • Module names now appear in cyan for better visual scanning and readability
  • Color automatically disabled in non-TTY environments (pipes, automation, agents)
  • Respects the NO_COLOR environment variable standard

Smart Color Detection

  • Enabled: When outputting to a TTY (interactive terminal)
  • Disabled: When piped to files, used by automation/agents, or non-TTY environments
  • Disabled: When NO_COLOR environment variable is set

Technical Details

Implementation (_logging.py)

  • Enhanced ShortNameFormatter class with ANSI color support
  • Uses cyan (\033[36m) for module prefixes with proper reset codes
  • Zero performance overhead when colors are disabled
  • Backward compatible with all existing logging code

Environment Variables

  • BOAT_LOG_LEVEL: Controls log verbosity (existing feature)
  • NO_COLOR: Disables color output (new, follows standard convention)

Example

# Before (plain text)
[file_system] File created successfully

# After (in terminal - [file_system] appears in cyan)
[file_system] File created successfully

🤖 Generated with Claude Code