0.1.0 • Published 3 years ago

pino-bravo v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

pino-bravo 👏

npm version

A beautiful minimalist formatter for pino.

Install

$ npm add pino pino-bravo

Usage

import pino from 'pino'
import pinoBravo from 'pino-bravo'

const logger = pino({
  prettyPrint: true,
  prettifier: pinoBravo(/* options */)
})

Options

OptionTypeDefaultDescription
ignoreKeysstring'hostname,pid,time'A comma-separated list of log keys to ignore.
modulesRecord<string, Style>{}A map of modules (eg. browser, api, ...) and their associated colors (eg. green, magenta, ...). If omitted, colors are picked automatically.
modulePaddingnumberundefinedModules padding for alignement. If omitted and modules is provided, it will infer the padding automatically. Otherwise it will not pad modules.