UNPKG

@graphql-hive/logger-pino

Version:
26 lines (16 loc) 1.06 kB
# @graphql-hive/logger-pino ## 1.0.1-alpha-6fe07a21437d0c3606484213abbaacb389fcde67 ### Patch Changes - [#1156](https://github.com/graphql-hive/gateway/pull/1156) [`fb74009`](https://github.com/graphql-hive/gateway/commit/fb740098652dba2e9107981d1f4e362143478451) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates: - Updated dependency [`pino@^9.7.0` ↗︎](https://www.npmjs.com/package/pino/v/9.7.0) (from `^9.6.0`, in `peerDependencies`) ## 1.0.0 ### Major Changes - [#946](https://github.com/graphql-hive/gateway/pull/946) [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35) Thanks [@ardatan](https://github.com/ardatan)! - New Pino integration (also helpful for Fastify integration); ```ts import { defineConfig } from '@graphql-hive/gateway'; import { createLoggerFromPino } from '@graphql-hive/logger-pino'; import pino from 'pino'; export const gatewayConfig = defineConfig({ logging: createLoggerFromPino(pino({ level: 'info' })), }); ```