Replace pino with @logtape/logtape in logging package#92
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Co-authored-by: erikrj <365211+erikrj@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Replace pino with logtape
Replace pino with @logtape/logtape in logging package
Mar 17, 2026
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.
Replaces pino (and its transport dependencies) with
@logtape/logtapeas the underlying logging engine in@nr1e/logging.Dependency changes
pnpm-workspace.yaml: removedpino,pino-abstract-transport,sonic-boom; added@logtape/logtape@^2.0.4logging/package.json: same swap independencies, removedpeerDependenciesblockImplementation changes (
logging/src/logging.mts)Loggerclass: no longer wraps a pino instance. Context (_bindings) and level (_level/_levelValue) are managed directly on the class.child()andnewLogger()copy bindings at creation time.initialize(): calls logtape'sconfigureSync()(withreset: true) to register a custom JSON sink and suppress the logtape meta logger.pid/host/ipare seeded into the initial bindings rather than injected via pino mixins/formatters.{level, time, svc, msg, ...properties}— including level format (upper/lower/numeric) and timestamp format (epoch/iso/unix) options.shutdown(): drops the root reference; no flush needed with a synchronous sink.pino()escape-hatch method,transportoption fromLoggingConfig(both pino-specific).typeoverride for non-Errorobjects now explicitly setstype: constructor.name(previously relied on pino's built-in error serializer).Public API surface is otherwise unchanged —
LogLevel,Logger,Entry,LoggingConfig,initialize,shutdown,getRootLogger,newLogger,isInitializedall retain the same signatures and behavior.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
jsr.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.