Structured json log viewer in the browser
Sherlock opens a websocket to your server/application on port 1667 and pretty-prints the raw JSON messages you send it.
{ log_type: '...' // displayed in the left-most column
, log_level: 'warning'
| 'error'
| 'info'
, log_color: '#aabbcc' // custom color
, ... // additional fields are displayed unaltered
}
$
is bound to the message array. To filter all messages with log_level === 'error'
:
$.filter(function(e) { return e.log_level === 'error' })
h
- insert a horizontal rulerl
- dump all messages to consolew
- save messages to local storagee
- load messages from local storage