fix(docs/gateway): correct logging reference (#5604)

This commit is contained in:
Arda TANRIKULU 2024-09-12 10:36:58 -07:00 committed by GitHub
parent 6f410010ef
commit e6e0244420
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -386,7 +386,7 @@ export const gatewayConfig = defineConfig({
})
```
#### `logger`
#### `logging`
By default, Hive Gateway uses a simple logger that logs to the console by using standard `console`
methods.
@ -402,11 +402,11 @@ import { defineConfig } from '@graphql-hive/gateway'
import { createLogger } from 'some-logger-library'
export const gatewayConfig = defineConfig({
logger: createLogger()
logging: createLogger()
// or
logger: 'info' // or 'debug' or 'warn' or 'error'
logging: 'info' // or 'debug' or 'warn' or 'error'
// or
logger: false
logging: false
})
```