feat(logger): add shared logger package with pino integration#37
Merged
amondnet merged 3 commits intoDec 19, 2025
Merged
Conversation
Create new logger package for structured logging across the monorepo: - pino-based implementation for high performance - Auto-detects pretty printing via NODE_ENV - Redacts sensitive fields (password, secret, token, apiKey, etc.) - All output to stderr (stdout reserved for protocol data) - Typed API: createLogger(name) factory and default logger singleton Issue: #36
Replace console.* calls with structured pino logging in: - code: CLI error handling with fatal log - code-format: Format initialization and formatting operations - code-lsp: LSP server lifecycle, diagnostics, and operations - dora: MCP server, port discovery, and ast-grep provider All packages now use @pleaseai/logger for consistent structured logging.
13 tasks
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #37 +/- ##
==========================================
+ Coverage 49.37% 50.13% +0.76%
==========================================
Files 21 22 +1
Lines 4324 4392 +68
==========================================
+ Hits 2135 2202 +67
- Misses 2189 2190 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Add console.error notification for unexpected errors during pino-pretty initialization - Distinguish expected "module not found" from unexpected errors - Add 22 new tests for redaction functionality covering all sensitive fields - Add tests for environment configuration (LOG_LEVEL, NODE_ENV) - Add tests for child logger context propagation
amondnet
deleted the
36-featlsp-add-logger-package-with-pino-integration
branch
December 19, 2025 12:18
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
@pleaseai/loggerpackage with pino integration for consistent, structured logging across the monorepo.Changes
New package:
@pleaseai/loggerwith pino wrapperPackage integrations:
@pleaseai/code: Fatal error logging@pleaseai/code-format: Format initialization and operations@pleaseai/code-lsp: LSP server lifecycle, diagnostics, spawn operations@pleaseai/dora: MCP server, port discovery, ast-grep providerAPI
Test plan
Closes #36