A brigde from pino to psr-log.
- node: 12
- @chubbyjs/psr-log: ^1.0.3
- @types/pino: ^6.3.11
- pino: ^6.13.2
Through NPM as @chubbyjs/chubbyjs-pino-psr.
npm i @chubbyjs/chubbyjs-pino-psr@1.0.0
import PinoPsrLogger from '@chubbyjs/chubbyjs-pino-psr/dist/PinoPsrLogger';
import LogLevel from '@chubbyjs/psr-log/dist/LogLevel';
import * as pino from 'pino';
const pinoPsrLogger = new PinoPsrLogger(
pino({
level: 'debug',
}),
);
pinoPsrLogger.log(LogLevel.INFO, 'message to log', {key: 'value'});
Dominik Zogg 2021