Skip to content

Commit 5e18d18

Browse files
committed
feat: improve readme
1 parent be1b537 commit 5e18d18

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,15 @@ yarn add pino-next
2121
pnpm add pino-next
2222
```
2323

24-
Patch global
24+
Patch global on instrumentation.ts file on the project root
2525

26-
```instrumentation.js
26+
```typescript
2727
export async function register() {
2828
if (process.env.NEXT_RUNTIME === "nodejs") {
2929
const patcher = await import("pino-next");
3030
patcher.patchConsoleWithLogger("console", console, patcher.consoleToPino);
31-
3231
}
3332
}
34-
35-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
36-
export const onRequestError = Sentry.captureRequestError;
37-
```
38-
39-
```
40-
41-
```
42-
43-
```instrumentation
44-
4533
```
4634

4735
## Basic Usage

0 commit comments

Comments
 (0)