Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

chubbyjs-legacy/chubbyjs-pino-psr

Repository files navigation

chubbyjs-pino-psr

CI Coverage Status Infection MSI npm-version

bugs code_smells coverage duplicated_lines_density ncloc sqale_rating alert_status reliability_rating security_rating sqale_index vulnerabilities

Description

A brigde from pino to psr-log.

Requirements

Installation

Through NPM as @chubbyjs/chubbyjs-pino-psr.

npm i @chubbyjs/chubbyjs-pino-psr@1.0.0

Usage

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'});

Copyright

Dominik Zogg 2021

About

A brigde from pino to psr-log.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published