File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/web/docs/src/content/migration-guides Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -561,9 +561,9 @@ npm i @graphql-hive/logger
561
561
562
562
``` diff filename="gateway.config.ts"
563
563
import pino from 'pino'
564
- import { defineConfig } from '@graphql-hive/gateway'
565
- import { Logger } from '@graphql-hive/logger'
564
+ - import { defineConfig } from '@graphql-hive/gateway'
566
565
- import { createLoggerFromPino } from '@graphql-hive/logger-pino'
566
+ + import { defineConfig, Logger } from '@graphql-hive/gateway'
567
567
+ import { PinoLogWriter } from '@graphql-hive/logger/writers/pino'
568
568
569
569
const pinoLogger = pino({
@@ -599,9 +599,9 @@ npm i @graphql-hive/logger
599
599
600
600
``` diff filename="gateway.config.ts"
601
601
import { createLogger, format, transports } from 'winston'
602
- import { defineConfig } from '@graphql-hive/gateway'
603
- import { Logger } from '@graphql-hive/logger'
602
+ - import { defineConfig } from '@graphql-hive/gateway'
604
603
- import { createLoggerFromWinston } from '@graphql-hive/winston'
604
+ + import { defineConfig, Logger } from '@graphql-hive/gateway'
605
605
+ import { WinstonLogWriter } from '@graphql-hive/logger/writers/winston'
606
606
607
607
const winstonLogger = createLogger({
You can’t perform that action at this time.
0 commit comments