Skip to content

jlog v0.0.6

Compare
Choose a tag to compare
@jrockway jrockway released this 23 Jun 15:27
· 13 commits to master since this release

If you're on Linux or OS X, install with brew tap jrockway/tap; brew install jrockway/tap/jlog. Otherwise download your favorite binary below.

This release adds regular expression filtering (for those of you tired of writing a jq program like select($MSG|test("regexp"))) and match context (if jq or regexes filter lines, you can display context around them with -A, -B, -C, just like grep).

You can also now parse logs without times, messages, or levels. This let me add Pachyderm worker log support, which doesn't log with levels.

Finally, log messages that contain \r won't overwrite the beginning of the line. (Terminal control codes still make it through, though.)

Changelog

  • 6dd46ac Allow logs to be parsed without time/level/message
  • 50ad842 Avoid letting logs with '\r's corrupt the output
  • 5d35de5 WIP: regexp match/no match
  • 68278ee add a script to run all the fuzz tests a little bit
  • c81a3a1 add option to merge a field into the main set of fields; make lager use this; un-skip all integration tests; make integration tests emit ERROR type messages; wire in key deletion and upgrading; update docs
  • 423a10f context: use the line object instead of rendered strings (makes elide, subseconds-only mode, etc. work correctly)
  • b26461f experimental: show context of unfiltered lines
  • 3b37224 jlog: start factoring out some of main.go into a helper package, and test it
  • 4c5aa37 parse: Emit: pass a pointer to line with a request to not modify it
  • 18d824a parse: auto-guess Pachyderm worker log schema
  • 7ed8fe3 parse: test all filtering scenarios, with and without context
  • bf78e5e parsers: test the noop parsers