Gathering detailed insights and metrics for @nestjs-mod/pino
Gathering detailed insights and metrics for @nestjs-mod/pino
Gathering detailed insights and metrics for @nestjs-mod/pino
Gathering detailed insights and metrics for @nestjs-mod/pino
npm install @nestjs-mod/pino
Typescript
Module System
Min. Node Version
Node Version
NPM Version
two-factor-v1.1.7
Updated on Jul 08, 2025
two-factor-v1.1.6
Updated on Jul 08, 2025
notifications-v1.2.5
Updated on Jul 08, 2025
two-factor-v1.1.5
Updated on Jul 08, 2025
files-v1.2.5
Updated on Jul 08, 2025
supabase-v1.2.3
Updated on Jul 08, 2025
TypeScript (96.75%)
JavaScript (2.51%)
Shell (0.45%)
HTML (0.28%)
Less (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
8 Stars
765 Commits
2 Forks
1 Watchers
1 Branches
2 Contributors
Updated on Jul 08, 2025
Latest Version
1.16.0
Package Id
@nestjs-mod/pino@1.16.0
Unpacked Size
34.85 kB
Size
9.79 kB
File Count
19
NPM Version
10.9.2
Node Version
23.11.1
Published on
May 24, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
7
Pino logger for NestJS-mod (Wrapper for https://www.npmjs.com/package/nestjs-pino)
1npm i --save pino-http pino nestjs-pino @nestjs-mod/pino
Link | Category | Description |
---|---|---|
NestjsPinoLoggerModule | system | Pino logger for NestJS-mod (Wrapper for https://www.npmjs.com/package/nestjs-pino) |
Pino logger for NestJS-mod (Wrapper for https://www.npmjs.com/package/nestjs-pino)
An example of using forRoot with parameters, you can see the full example here https://github.com/nestjs-mod/nestjs-mod-contrib/tree/master/apps/example-pino-logger.
Passing requestId from the frontend is supported.
1import { 2 DefaultNestApplicationInitializer, 3 DefaultNestApplicationListener, 4 bootstrapNestApplication, 5} from '@nestjs-mod/common'; 6import { NestjsPinoLoggerModule } from '@nestjs-mod/pino'; 7 8bootstrapNestApplication({ 9 modules: { 10 system: [ 11 DefaultNestApplicationInitializer.forRoot({ staticConfiguration: { bufferLogs: true } }), 12 NestjsPinoLoggerModule.forRoot(), 13 DefaultNestApplicationListener.forRoot({ 14 staticEnvironments: { port: 3000 }, 15 }), 16 ], 17 }, 18});
Key | Description | Constraints | Default | Value |
---|---|---|---|---|
requestIdHeaderName | Header name for search requestId | optional | x-request-id | - |
exclude | Optional parameter for routing. It should implement interface of parameters of NestJS built-in MiddlewareConfigProxy['forRoutes'] . @see https://docs.nestjs.com/middleware#applying-middleware It can be used for both disabling automatic req/res logs and removing request context from following logs. It works for all requests by default. If you only need to turn off the automatic request/response logging for some specific (or all) routes but keep request context for app logs use pinoHttp.autoLogging field. | optional | - | - |
forRoutes | Optional parameter for routing. It should implement interface of parameters of NestJS built-in MiddlewareConfigProxy['forRoutes'] . @see https://docs.nestjs.com/middleware#applying-middleware It can be used for both disabling automatic req/res logs and removing request context from following logs. It works for all requests by default. If you only need to turn off the automatic request/response logging for some specific (or all) routes but keep request context for app logs use pinoHttp.autoLogging field. | optional | - | - |
pinoHttp | Optional parameters for pino-http module @see https://github.com/pinojs/pino-http#pinohttpopts-stream | optional | - | - |
renameContext | Optional parameter to change property name context in resulted logs, so logs will be like: {"level":30, ... "RENAME_CONTEXT_VALUE_HERE":"AppController" } | optional | - | - |
useExisting | Optional parameter to skip pino configuration in case you are using FastifyAdapter, and already configure logger in adapter's config. The Pros and cons of this approach are described in the FAQ section of the documentation: @see https://github.com/iamolegga/nestjs-pino#faq. | optional | - | - |
MIT
No vulnerabilities found.
No security vulnerabilities found.