Socket
Socket
Sign inDemoInstall

good-console-logfmt

Package Overview
Dependencies
31
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    good-console-logfmt

Console broadcasting for Good process monitor, using the logfmt format


Version published
Maintainers
1
Install size
4.85 MB
Created

Readme

Source

good-console-logfmt

Console broadcasting for Good process monitor, using logfmt formatting

Build StatusCurrent Version

Lead Maintainer: Christopher De Cairos

Usage

good-console-logfmt is a good reporter implementation to write hapi server events to the console. It uses the logfmt package to format log output.

GoodConsoleLogfmt(events, [config])

Creates a new GoodConsoleLogfmt object with the following arguments:

  • events - an object of key value pairs.
    • key - one of the supported good events indicating the hapi event to subscribe to
    • value - a single string or an array of strings to filter incoming events. "*" indicates no filtering. null and undefined are assumed to be "*"
  • [config] - optional configuration object with the following available keys
    • utc - boolean controlling Moment using utc mode or not. Defaults to true.

Good Console Logfmt Methods

goodconsolelogfmt.init(stream, emitter, callback)

Initializes the reporter with the following arguments:

  • stream - a Node readable stream that will be the source of data for this reporter. It is assumed that stream is in objectMode.
  • emitter - an event emitter object.
  • callback - a callback to execute when the start function has complete all the necessary set up steps and is ready to receive data.

FAQs

Last updated on 06 Jun 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc