From f3fcc9c7ca55a17cf6ccfacd7910ebbaec44738b Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Tue, 7 Aug 2012 22:13:38 -0700 Subject: [PATCH] Bump to v0.11.0. Change log update. Some -h output tweak. --- CHANGES.md | 11 +++++++++-- bin/bunyan | 8 ++++---- lib/bunyan.js | 2 +- package.json | 2 +- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 7940bfe..5067481 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,8 +1,15 @@ # bunyan Changelog -## bunyan 0.10.1 (not yet released) +## bunyan 0.11.0 (not yet released) -(nothing yet) +- [pull #29] Add -l/--level for level filtering, and -c/--condition for + arbitrary conditional filtering (by github.com/isaacs): + + $ ... | bunyan -l error # filter out log records below error + $ ... | bunyan -l 50 # numeric value works too + $ ... | bunyan -c 'level===50' # equiv with -c filtering + $ ... | bunyan -c 'pid===123' # filter on any field + $ ... | bunyan -c 'pid===123' -c '_audit' # multiple filters ## bunyan 0.10.0 diff --git a/bin/bunyan b/bin/bunyan index d08679a..4481f34 100755 --- a/bin/bunyan +++ b/bin/bunyan @@ -5,7 +5,7 @@ // See . // -var VERSION = "0.10.1"; +var VERSION = "0.11.0"; var util = require('util'); var pathlib = require('path'); @@ -128,7 +128,7 @@ function printHelp() { util.puts(" bunyan [OPTIONS] [FILE ...]"); util.puts(""); util.puts("Pipe in your JSON log file content (e.g. bunyan logs) for nicer "); - util.puts("output"); + util.puts("output."); util.puts(""); util.puts("Options:"); util.puts(" -h, --help print this help info and exit"); @@ -153,14 +153,14 @@ function printHelp() { util.puts(""); util.puts("Log Levels:"); util.puts(" Either numeric values or their associated strings are valid for the"); - util.puts(" -l --level argument. However, --condition scripts will see a numeric"); + util.puts(" -l|--level argument. However, -c|--condition scripts will see a numeric"); util.puts(" 'level' value, not a string."); util.puts(""); Object.keys(levelFromName).forEach(function(name) { var n = name; while (n.length < 6) n += " "; - console.log(" %s %d", n, levelFromName[name]); + console.log(" %s %d", n, levelFromName[name]); }); util.puts(""); util.puts("See for more complete docs."); diff --git a/lib/bunyan.js b/lib/bunyan.js index a0998c6..085d0b0 100644 --- a/lib/bunyan.js +++ b/lib/bunyan.js @@ -4,7 +4,7 @@ * The bunyan logging library for node.js. */ -var VERSION = '0.10.1'; +var VERSION = '0.11.0'; // Bunyan log format version. This becomes the 'v' field on all log records. // `0` is until I release a version '1.0.0' of node-bunyan. Thereafter, diff --git a/package.json b/package.json index eab8958..858c2b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bunyan", - "version": "0.10.1", + "version": "0.11.0", "description": "a JSON Logger library for node.js services", "author": "Trent Mick (http://trentm.com)", "main": "./lib/bunyan.js",