All Projects → pkamenarsky → sherlock

pkamenarsky / sherlock

Licence: other
Structured json log viewer in the browser

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].