good-console

Console broadcasting for Good process monitor

This module has moved and is now available at @hapi/good-console. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
Last updated a year ago by hueniverse .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install good-console 
SYNC missed versions from official npm registry.

good-console

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

Build Status Current Version

Lead Maintainer: Open Position

Requires node v8 or above. Use version v7 of this module for node v6 support.

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:

  • "ops" - 160318/013330.957, [ops] memory: 29Mb, uptime (seconds): 6, load: [1.650390625,1.6162109375,1.65234375]
  • "error" - 160318/013330.957, [error,event.tags] message: Just a simple error, stack: event.error.stack
  • "request" - 160318/013330.957, [request,event.tags] data: you made a request
  • "log" - 160318/013330.957, [log,event.tags] data: you made a default
  • "response" - 160318/013330.957, [response, event.tags] http://localhost:61253: post /data {"name":"adam"} 200 (150ms)

Current Tags

  • 8.0.0                                ...           latest (a year ago)

34 Versions

  • 8.0.0 [deprecated]           ...           a year ago
  • 7.1.0 [deprecated]           ...           2 years ago
  • 7.0.1 [deprecated]           ...           2 years ago
  • 7.0.0 [deprecated]           ...           2 years ago
  • 6.4.1 [deprecated]           ...           3 years ago
  • 6.4.0 [deprecated]           ...           3 years ago
  • 6.1.3 [deprecated]           ...           4 years ago
  • 6.2.0 [deprecated]           ...           4 years ago
  • 6.3.1 [deprecated]           ...           4 years ago
  • 6.1.2 [deprecated]           ...           4 years ago
  • 6.1.1 [deprecated]           ...           4 years ago
  • 5.3.2 [deprecated]           ...           4 years ago
  • 6.1.0 [deprecated]           ...           4 years ago
  • 6.0.0 [deprecated]           ...           4 years ago
  • 5.3.1 [deprecated]           ...           4 years ago
  • 5.3.0 [deprecated]           ...           4 years ago
  • 5.2.0 [deprecated]           ...           5 years ago
  • 5.1.0 [deprecated]           ...           5 years ago
  • 5.0.3 [deprecated]           ...           5 years ago
  • 5.0.2 [deprecated]           ...           5 years ago
  • 5.0.1 [deprecated]           ...           5 years ago
  • 5.0.0 [deprecated]           ...           5 years ago
  • 4.1.0 [deprecated]           ...           6 years ago
  • 4.0.0 [deprecated]           ...           6 years ago
  • 3.1.2 [deprecated]           ...           6 years ago
  • 3.1.0 [deprecated]           ...           6 years ago
  • 3.0.2 [deprecated]           ...           6 years ago
  • 3.0.1 [deprecated]           ...           6 years ago
  • 3.0.0 [deprecated]           ...           6 years ago
  • 2.1.0 [deprecated]           ...           6 years ago
  • 2.0.1 [deprecated]           ...           6 years ago
  • 2.0.0 [deprecated]           ...           6 years ago
  • 1.0.0 [deprecated]           ...           6 years ago
  • 0.0.1 [deprecated]           ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 9
This Month 20
Last Day 9
Last Week 22
Last Month 202
Dependencies (4)
Dev Dependencies (3)
Dependents (189)

Copyright 2014 - 2016 © taobao.org |