Socket
Socket
Sign inDemoInstall

decolog

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decolog

A cli tool that you can pipe JSON log files into and get pretty output.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

decolog

A cli tool that you can pipe JSON log files into and get pretty output.

Installation

npm install -g decolog

Usage

$ decolog --help

  Usage: decolog [options]

  Options:

    -h, --help                         output usage information
    -V, --version                      output the version number
    -e, --events <events>              Only include these events
    -E, --not-events <not-events>      Do not include these events
    -s, --services <services>          Only include these events
    -S, --not-services <not-services>  Do not include these events
    -m, --minimal                      Only output one line per record, skipping extra fields

  If a file is specified, the file will be watched and all previous and future contents of the file will be decorated and outputted.
  If no file is specified stdin will be decorated and outputted.

  Examples:

    $ decorate-log temp/log
    $ tail -f temp/log | decorate-log
    $ cat temp/log | decorate-log -e request,response

Expected log file format

The log file should consist of lines with JSON objects. Each line should have (not restricted to) the following keys:

  • @timestamp
  • event
  • message
  • groupId

FAQs

Package last updated on 28 Dec 2016

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc