Skip to content

feat(cu_consolemon): fallback to simple logging in headless mode#741

Merged
makeecat merged 1 commit into
masterfrom
yang/feat/consolemon_fallback_logging
Jan 27, 2026
Merged

feat(cu_consolemon): fallback to simple logging in headless mode#741
makeecat merged 1 commit into
masterfrom
yang/feat/consolemon_fallback_logging

Conversation

@makeecat

@makeecat makeecat commented Jan 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • cu-consolemon auto-fallbacks to plain NoMonitor-style text logging in non-interactive (headless) debug runs.

Related Issue: #726

Details

  • Detects non-TTY in CuConsoleMon::start and registers a live log listener that prints HH:mm:ss.xxxx [Level] message without ANSI escapes.
  • Unregisters the listener on stop() when running headless.
  • Adds a small formatter helper and a debug-only unit test to verify the output format.

@makeecat makeecat requested a review from gbin January 27, 2026 02:59
@makeecat makeecat self-assigned this Jan 27, 2026
@makeecat makeecat added the enhancement New feature or request label Jan 27, 2026
@makeecat makeecat force-pushed the yang/feat/consolemon_fallback_logging branch from 12a83a7 to 9ae8531 Compare January 27, 2026 15:03
@makeecat makeecat merged commit 64d6a9b into master Jan 27, 2026
24 of 25 checks passed
@makeecat makeecat deleted the yang/feat/consolemon_fallback_logging branch January 27, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect in consolemon that we are not in an interactive console and switch to simple logging

2 participants