Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

pino-minimal

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-minimal

A minimal and clean transport for the pino logger.

latest
npmnpm
Version
1.2.1
Version published
Maintainers
1
Created
Source

pino-minimal

A beautiful and minimal transport for pino

Header

Travis Build Status NPM version

Description

The pino-minimal transport provides a prettified, minimalistic and beautiful output for Pino.js. It's output format is strongly inspired by Signale.

Contents

Installation

NPM

$ npm install -g pino-minimal

Yarn

$ yarn global add pino-minimal

Usage

To use it, simply pipe the output from Pino into this transport. Example:

$ node server.js | pino-minimal

Command Line Arguments

This package supports several command line arguments to customize the output. A flag that is true by default can be negated by using it with a no prefix, e.g. to hide the time, use the option --no-time.

Option/sTypeDefaultDescription
--help, -hboolean-Show a help document.
--version, -vboolean-Show version information.
--date, -dbooleanfalseShow a date in the log output.
--time, -tbooleantrueShow a time in the log output. Use --no-time to disable.
--pid, -pbooleanfalseShow the process ID (PID) in the log output.
--hostname, -hbooleanfalseShow the hostname in the log output.
--stacktrace, -sbooleantrueShow a stack trace for errors that occur. Use --no-stacktrace to disable.
--colorize, -cbooleanDepends on terminalColorize the console output. Use --no-colorize to disable.
--messageKeystringmsgThe JSON key to read the message from.
--timestampKeystringtimeThe JSON key to read the timestamp from.
--crlf, -fbooleanfalseUse CRLF line endings instead of LF line endings.

License

MIT

Keywords

pino

FAQs

Package last updated on 14 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts