You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(logger): add shared logger package with pino integration (#37)
* feat(logger): add @pleaseai/logger package with pino integration
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
* feat(logger): integrate logger across all packages
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.
* fix(logger): add error notification in fallback and comprehensive tests
- 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
0 commit comments