File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
77This 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';
2929import {thaterrorSerializer , thaterrorHooks } from ' @thaterror/pino-adapter' ;
3030
3131export 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: {
You can’t perform that action at this time.
0 commit comments