Skip to content

Commit ad70160

Browse files
authored
docs: update to logger-winston (#6897)
1 parent 45d5fa0 commit ad70160

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/web/docs/src/content/gateway/logging-and-error-handling.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,16 @@ only log info, warn and error messages.
7474
By default, Hive Gateway uses the built-in `console` logger. However, you can also integrate Hive
7575
Gateway with [Winston](https://github.com/winstonjs/winston) on Node.js environments.
7676

77-
You need to install `winston` and `@graphql-hive/winston` packages to use Winston with Hive Gateway.
77+
You need to install `winston` and `@graphql-hive/logger-winston` packages to use Winston with Hive Gateway.
7878

7979
```sh npm2yarn
80-
npm i winston @graphql-hive/winston
80+
npm i winston @graphql-hive/logger-winston
8181
```
8282

8383
```ts
8484
import { createLogger, format, transports } from 'winston'
8585
import { defineConfig } from '@graphql-hive/gateway'
86-
import { createLoggerFromWinston } from '@graphql-hive/winston'
86+
import { createLoggerFromWinston } from '@graphql-hive/logger-winston'
8787

8888
// Create a Winston logger
8989
const winstonLogger = createLogger({

0 commit comments

Comments
 (0)