7.2.0 • Published 6 years ago

good-console-payload v7.2.0

Weekly downloads
1
License
BSD-3-Clause
Repository
github
Last release
6 years ago

good-console-payload

This is a fork of good-console that logs payload and headers as well.

good-console

good-console is a transform stream useful for turning good server events into formatted strings.

Build Status Current Version

Lead Maintainer: Adam Bretz

Usage

new GoodConsole([config])

Creates a new GoodConsole object with the following arguments:

  • [config] - optional configuration object with the following keys - format - MomentJS format string. Defaults to 'YYMMDD/HHmmss.SSS'. - utc - boolean controlling Moment using utc mode or not. Defaults to true. - color - a boolean specifying whether to output in color. Defaults to true.

Output Formats

Below are example outputs for the designated event type: