Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mishguru/logview-cli

Package Overview
Dependencies
Maintainers
13
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mishguru/logview-cli

Logview CLi

  • 1.2.0
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
13
Weekly downloads
 
Created
Source

Log View CLI

Installation

npm install -g @mishguru/logview-cli

Usage

logv --help

Options:
  --help        Show help                                              [boolean]
  --version     Show version number                                    [boolean]

  --follow, -f  Append new logs as they are sent in   [boolean] [default: false]
  --user, -u    A list of user IDs to filter logs by                     [array]
  --type, -t    A list of event types to filter logs by                  [array]
  --info, -i    Filter logs by info using SQL LIKE                      [string]
  --payload, -p Filter logs by the JSON payload using SQL LIKE          [string]

  --lines, -l   Number of logs to retrieve                [number] [default: 20]
  --before, -b  Only display logs sent before the specified date        [string]
  --after, -a   Only display logs sent after the specified date         [string]

	--format 			Choose how to display the log 				 [string] [default:pretty]
								pretty: Prettified log view
								json: Displays payload in JSON, with title
								jq: Only outputs JSON, useful for piping to jq
logv -l 20 -u 43
[press space to load more logs]

logv -u 43 -f
[press ctrl-c to exit]

logv read 1234 1302
12345 unexpectedError                                    24th Jan 2018, 12:42:12
> "the info is printed here"
User ID: 123, Instagram Account: 21

1302 snapchatAccountOutOfDate                            24th Jan 2018, 12:42:12
> ""
> ""
instagramAccountId | 

logv read --format jq 12354
{
	"id": "12345",
	"sentAt": "24th Jan 2018, 12:42:12",
	"type": "unexpectedError",
	"payload": {
		"info": "Something went wrong!",
		"userId": 123,
	}
}

Emojis for different event types? Colors for different groups?

FAQs

Package last updated on 13 Feb 2019

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