# iamolegga/nestjs-pino

Platform agnostic logger for NestJS based on Pino with REQUEST CONTEXT IN EVERY LOG

Repository: https://github.com/iamolegga/nestjs-pino
Canonical: https://ross.abutalabs.com/products/nestjs-pino
Language: TypeScript
License: MIT
License Family: permissive
Topics: nestjs, nest, pino, logging, logger, hacktoberfest
Last push: 2026-08-25T02:03:03+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 62, longevity 100
- inputs: {"age_days": 2555, "days_push": 9, "days_rel": 173, "gap_med": 31, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1539, forks 108 (observed 2026-08-28T04:05:00.389026+00:00)

## What it is
A NestJS logger module built on Pino that injects request context into every log line. It works with both Express and Fastify and integrates via LoggerModule.forRoot().

## Use cases
- add request context to every log in a NestJS app
- structured JSON logging for NestJS APIs
- replace NestJS default logger with Pino
- correlate HTTP request logs with request IDs
- fast low-overhead logging for Node.js services
- log consistently across Express and Fastify adapters

## When to choose
- you use NestJS and want Pino's performance with automatic request context
- you need structured logs for log aggregation and tracing
- you want a drop-in logger configured once in the root module

## When to avoid
- you don't use NestJS (use pino or pino-http directly)
- you need a non-Pino logging backend
- you're on NestJS < 8 and can't use v2+

## Facets
- artifact type: library
- maturity: active
- function: logging, middleware
- domain: backend, developer-tools, web-development, monitoring
- platform: cross-platform
- tags: nestjs, pino, request-context, structured-logging, typescript, express, fastify, nodejs

## Member repositories
- iamolegga/nestjs-pino (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:00.389026+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:30:54.081328+00:00, confidence not recorded.
  - readme: https://github.com/iamolegga/nestjs-pino (fetched 2026-08-28T04:05:00.389026+00:00, sha 99578f1f9c9c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
