Skip to content

pkamenarsky/sherlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Sherlock

Sherlock opens a websocket to your server/application on port 1667 and pretty-prints the raw JSON messages you send it.

JSON structure

{ log_type: '...'      // displayed in the left-most column
, log_level: 'warning'
           | 'error'
           | 'info'
, log_color: '#aabbcc' // custom color
, ...                  // additional fields are displayed unaltered
}

Filtering

$ is bound to the message array. To filter all messages with log_level === 'error':

$.filter(function(e) { return e.log_level === 'error' })

Keys

  • h - insert a horizontal ruler
  • l - dump all messages to console
  • w - save messages to local storage
  • e - load messages from local storage

About

Structured json log viewer in the browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published