@nexusts/logger
v0.9.4
Published
Pino-backed structured logging
Downloads
1,887
Readme
@nexusts/logger
NexusTS — Bun-native fullstack framework
Description
Pino-backed structured logging.
Pretty-printed in dev, JSON in prod. Request-scoped via AsyncLocalStorage (every log line inside a request automatically includes the request id).
Install
This module is part of the NexusTS monorepo. Each module is published as its own npm package under the @nexusts/ scope.
Most apps start with just the core:
bun add @nexusts/coreThen add this module only if you need it:
bun add @nexusts/loggerPeer dependencies
None. No external dependencies. Uses pino (bundled) under the hood.
Usage
import { /* public API */ } from "@nexusts/logger";See the user guide and the example app for a working demo.
License
MIT — see the root LICENSE.
