Skip to content

Commit fdf6a09

Browse files
authored
Update README for pino-adapter with pino link
1 parent dd70b46 commit fdf6a09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/pino-adapter/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![npm version](https://img.shields.io/npm/v/@thaterror/pino-adapter.svg)](https://www.npmjs.com/package/@thaterror/adapter)
44

5-
A small adapter to serialize and log `ThatError` instances with `pino`.
5+
A small adapter to serialize and log `ThatError` instances with [pino](https://github.com/pinojs/pino).
66

77
This README shows installation and usage examples. For core library usage and error-family definitions, see
88
`../core/README.md`.
@@ -29,7 +29,7 @@ import pino from 'pino';
2929
import {thaterrorSerializer, thaterrorHooks} from '@thaterror/pino-adapter';
3030

3131
export const logger = pino({
32-
serializers: {err: thaterrorSerializer}, // <-- add the serializer
32+
serializers: {thaterror: thaterrorSerializer}, // <-- add the serializer
3333
transport: {
3434
target: "pino-pretty",
3535
options: {

0 commit comments

Comments
 (0)