Bump to v0.11.0. Change log update. Some -h output tweak.

This commit is contained in:
Trent Mick 2012-08-07 22:13:38 -07:00
parent 917cf4bcaa
commit f3fcc9c7ca
4 changed files with 15 additions and 8 deletions

View file

@ -1,8 +1,15 @@
# bunyan Changelog # 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 ## bunyan 0.10.0

View file

@ -5,7 +5,7 @@
// See <https://github.com/trentm/node-bunyan>. // See <https://github.com/trentm/node-bunyan>.
// //
var VERSION = "0.10.1"; var VERSION = "0.11.0";
var util = require('util'); var util = require('util');
var pathlib = require('path'); var pathlib = require('path');
@ -128,7 +128,7 @@ function printHelp() {
util.puts(" bunyan [OPTIONS] [FILE ...]"); util.puts(" bunyan [OPTIONS] [FILE ...]");
util.puts(""); util.puts("");
util.puts("Pipe in your JSON log file content (e.g. bunyan logs) for nicer "); 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("");
util.puts("Options:"); util.puts("Options:");
util.puts(" -h, --help print this help info and exit"); util.puts(" -h, --help print this help info and exit");
@ -153,14 +153,14 @@ function printHelp() {
util.puts(""); util.puts("");
util.puts("Log Levels:"); util.puts("Log Levels:");
util.puts(" Either numeric values or their associated strings are valid for the"); 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(" 'level' value, not a string.");
util.puts(""); util.puts("");
Object.keys(levelFromName).forEach(function(name) { Object.keys(levelFromName).forEach(function(name) {
var n = name; var n = name;
while (n.length < 6) while (n.length < 6)
n += " "; n += " ";
console.log(" %s %d", n, levelFromName[name]); console.log(" %s %d", n, levelFromName[name]);
}); });
util.puts(""); util.puts("");
util.puts("See <https://github.com/trentm/node-bunyan> for more complete docs."); util.puts("See <https://github.com/trentm/node-bunyan> for more complete docs.");

View file

@ -4,7 +4,7 @@
* The bunyan logging library for node.js. * 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. // 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, // `0` is until I release a version '1.0.0' of node-bunyan. Thereafter,

View file

@ -1,6 +1,6 @@
{ {
"name": "bunyan", "name": "bunyan",
"version": "0.10.1", "version": "0.11.0",
"description": "a JSON Logger library for node.js services", "description": "a JSON Logger library for node.js services",
"author": "Trent Mick <trentm@gmail.com> (http://trentm.com)", "author": "Trent Mick <trentm@gmail.com> (http://trentm.com)",
"main": "./lib/bunyan.js", "main": "./lib/bunyan.js",