@@ -18,7 +18,8 @@ logs. The logger implementation now consistently uses the new `@graphql-hive/log
18
18
standardizes the logger prop naming and usage.
19
19
20
20
<Callout type = " info" >
21
- You can read more about the new logger and its features in the [ Hive Logger documentation] ( / ) .
21
+ You can read more about the new logger and its features in the [ Hive Logger
22
+ documentation] ( /docs/logger ) .
22
23
</Callout >
23
24
24
25
### Deprecating the Old Logger
@@ -95,7 +96,7 @@ export const gateway = createGatewayRuntime({
95
96
96
97
A great new feature of the Hive Logger is the ability to change the log level dynamically at
97
98
runtime. This allows you to adjust the verbosity of logs without restarting the application. Please
98
- advise the [ Hive Logger documentation] ( / ) for more details.
99
+ advise the [ Hive Logger documentation] ( /docs/logger ) for more details.
99
100
100
101
#### Using a Custom Logger
101
102
@@ -319,7 +320,7 @@ As you may see, it's very simple and allows you, to not only use your favourite
319
320
winston, but also implement custom writers that send logs to a HTTP consumer or writes to a file.
320
321
321
322
<Callout type = " info" >
322
- Read more about implementing your own writers in the [ Hive Logger documentation] ( / ) .
323
+ Read more about implementing your own writers in the [ Hive Logger documentation] ( /docs/logger ) .
323
324
</Callout >
324
325
325
326
### Pino (only Node.js)
@@ -329,13 +330,13 @@ logs.
329
330
330
331
` pino ` is an optional peer dependency, so you must install it first.
331
332
332
- ``` npm2yarn
333
+ ``` sh npm2yarn
333
334
npm i pino pino-pretty
334
335
```
335
336
336
337
Since we're using a custom log writter, you have to install the Hive Logger package too:
337
338
338
- ``` npm2yarn
339
+ ``` sh npm2yarn
339
340
npm i @graphql-hive/logger
340
341
```
341
342
@@ -373,7 +374,7 @@ npm i winston
373
374
374
375
Since we're using a custom log writter, you have to install the Hive Logger package too:
375
376
376
- ``` npm2yarn
377
+ ``` sh npm2yarn
377
378
npm i @graphql-hive/logger
378
379
```
379
380
0 commit comments