@voiceflow/logger
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

circle ci Coverage Quality Gate Status

logger

A standardized package for logging built on pino.

Usage

import { createLogger, LogLevel, LogFormat } from '@voiceflow/logger';

const logger = createLogger({ format: LogFormat.JSON, level: LogLevel.INFO });

const inlineLogger = createLogger({ format: LogFormat.INLINE, level: LogLevel.WARN });

const detailedLogger = createLogger({ format: LogFormat.DETAILED, level: LogLevel.TRACE });

logger.trace('this is a trace log');
logger.debug('this is a debug log');
logger.info('this is an info log');
logger.warn('this is a warning log');
logger.error('this is an error log');
logger.fatal('this is a fatal log');

/@voiceflow/logger/

    Package Sidebar

    Install

    npm i @voiceflow/logger

    Weekly Downloads

    466

    Version

    2.2.0

    License

    ISC

    Unpacked Size

    24.2 kB

    Total Files

    38

    Last publish

    Collaborators

    • cheatcod
    • ebra-vf
    • saargue
    • ganeshasapu
    • gillyb
    • ose-voiceflow
    • theprof
    • bhuvana.adur.kannan
    • abuyak
    • e_vandenberg
    • ninabondar
    • yoyotruly
    • matthewnaik
    • edison-vflow
    • shelone.grantwatson
    • zhilight
    • amandasteinhauer
    • pmvrmc
    • filipemerker
    • viniciusdacal
    • trs
    • matheuspoleza
    • denyslinkov
    • andrewlawrence
    • tylerhhan
    • effervescentia
    • josh_vf
    • voiceflow-gallagan
    • z4o4z
    • xavidop
    • vf-serviceaccount