Skip to content

Initialize global consola logger in CLI#70

Merged
lollipop-onl merged 4 commits into
mainfrom
claude/disable-consola-timestamp-Dofw8
Mar 10, 2026
Merged

Initialize global consola logger in CLI#70
lollipop-onl merged 4 commits into
mainfrom
claude/disable-consola-timestamp-Dofw8

Conversation

@lollipop-onl
Copy link
Copy Markdown
Collaborator

Summary

Adds initialization of a global consola logger instance in the CLI entry point. This sets up a non-fancy console logger that can be used throughout the CLI application for consistent logging behavior.

The change imports createConsola from the consola package and creates a global instance with fancy: false configuration, making it available via globalThis.consola.

Test plan

N/A - This is a straightforward initialization change. Verify that the CLI starts without errors and that any existing logging functionality continues to work as expected.

https://claude.ai/code/session_011823SsAVT5oAoqN7YvGzuh

claude added 2 commits March 9, 2026 06:34
Set formatOptions.date to false to suppress timestamps that are
unnecessary for CLI usage.

https://claude.ai/code/session_011823SsAVT5oAoqN7YvGzuh
CLI tool doesn't need fancy reporter's box decorations or timestamps.
Switch to basic reporter via createConsola({ fancy: false }).

https://claude.ai/code/session_011823SsAVT5oAoqN7YvGzuh
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 10, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 92.29% 1774 / 1922
🔵 Statements 92.38% 1844 / 1996
🔵 Functions 90.78% 384 / 423
🔵 Branches 77.95% 831 / 1066
File CoverageNo changed files found.
Generated in workflow #353 for commit f4add36 by the Vitest Coverage Report Action

claude added 2 commits March 10, 2026 03:27
Simplify the approach to disable timestamps by setting the option
on the existing consola instance instead of creating a new one
with the basic reporter. This fixes the TypeScript type error.

https://claude.ai/code/session_011823SsAVT5oAoqN7YvGzuh
@lollipop-onl lollipop-onl merged commit 117bff6 into main Mar 10, 2026
7 checks passed
@lollipop-onl lollipop-onl deleted the claude/disable-consola-timestamp-Dofw8 branch March 10, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants