Commit Graph

31 Commits (29019b3145c66407e0d40491d8c66ff60a3c76e2)

Author SHA1 Message Date
Jonatan Nilsson 29019b3145 Remove all instances of dtrace 2018-07-22 08:51:54 +00:00
Trent Mick 2d17313c4a cli: don't guess at a Host header when rendering client_req field (#504) 2017-08-02 13:20:42 -07:00
Michael Nisi 99f3c47793 Check body length to prevent empty lines 2016-02-21 22:20:21 -08:00
Trent Mick a826919b99 fix 'make check' 2016-02-10 22:35:33 -08:00
Trent Mick 8bb8a746dc only want TZ set for the tests that need it, not everything run via this Makefile 2016-02-10 22:31:53 -08:00
Trent Mick 6ff1f36abc momentjs: avoid for default fast path; make required only for local time
Make the default (long output format, UTC time) for the bunyan CLI a
fast path that doesn't use moment.js. Admittedly I haven't measured
percentage impact of `moment(rec.time).utc().format(...)` for
many bunyan records.

Also make moment dep *optional*. The bunyan CLI will error out without
the moment dep *only if local time is requested.*
2016-02-10 22:13:01 -08:00
David M. Lee 8df86bccf0 Improved time formatting and conversion
Bunyan CLI was not handling timezone conversion properly when set to use
local time. This patch uses [Moment.js][] to fix those issues.

 * Timezone conversions work properly across DST conversions
 * The timezone, when shown, is correctly shown as `±hh:mm`
 * The timzeone is omitted on short output, since it isn't that short.
   Except when UTC is used, since that can be indicated by the single
   character `Z`

Fixes #245

 [Moment.js]: http://momentjs.com/
2016-02-10 22:03:35 -08:00
Trent Mick 30fa3da5e9 node-bunyan#252 changelog and test case 2016-02-10 00:03:21 -08:00
Trent Mick 5d666f49f1 update tests to run against some io.js versions. Minor test case fix for io.js slight diff to 0.12. 2015-06-07 11:06:50 -07:00
Trent Mick 762e26713c Make `bunyan` defensive on `res.header=null`.
Fixes #244.
Also add test case for this and a couple recent `bunyan` crashers.
2015-04-15 09:21:31 -07:00
Trent Mick ecf4b8c6a4 Tweak to SIGINT patch from @jnordberg for #161 2014-08-24 23:34:38 -07:00
Trent Mick 660b706479 doc new -c CODE; drop dtrace-provider as optionalDependency (fixes #135); add 'bunyan -0' shortcut 2014-08-01 15:57:48 -07:00
Patrick Mooney 042e2c0fc9 [issue #87] Kill vm.runInNewContext with fire
Change default condition evaluation from vm.runInNewContext to
eval-style functions.  Use of "naked" variables (pid === 123, etc) no
longer works, making this.<name> variable qualification necessary.
2014-07-31 20:48:31 -05:00
Trent Mick d305801472 [issue #139] Fix `bunyan` crash on a log record with `res.header` that is an object. 2014-05-29 00:13:01 -07:00
Trent Mick a111200a5a make check 2013-04-01 17:21:01 -07:00
Trent Mick f616276dc6 style: 4-space indents 2013-03-28 17:42:32 -07:00
Trent Mick 947705ad1e 'long' and 'bunyan' output formats 2013-03-08 16:32:10 -08:00
Trent Mick b1c143c87a bunyan CLI auto-paging 2013-01-18 21:24:23 -08:00
Trent Mick bd4dec5bec move test suite to nodeunit 2013-01-07 11:18:12 -08:00
Trent Mick 4145e63a6f fix test case for latency tweak in CLI output 2012-12-27 17:09:30 -08:00
Trent Mick 8a7d743152 [issue #45] Fix bunyan CLI (default output mode) to not crash on a 'res' field that isn't a response object, but a string. 2012-10-10 11:39:29 -07:00
Trent Mick 1a9e712dbc [issue #34] `body` et al in request/response output by `bunyan` CLI
Ensure `req.body`, `res.body` and other request/response
fields are emitted by the `bunyan` CLI (mostly by Rob Gulewich).
2012-08-21 11:04:33 -07:00
Trent Mick f0a119a306 [issue #30] Robust handling of 'req' field without a 'headers' subfield in `bunyan` CLI. 2012-08-08 22:27:49 -07:00
Trent Mick b0cd1f628d Fix some accidental t.ends() and corpus paths in test cases for 0.11.0. 2012-08-08 22:12:24 -07:00
isaacs b1ed38af90 Add -c --condition for arbitrary filtering 2012-08-07 17:35:38 -07:00
isaacs 98550dadf5 Add --level -l for level filtering 2012-08-07 17:35:19 -07:00
Michael Hart ad71b88f96 Added support for Gzip log files 2012-06-22 15:14:56 +10:00
Dave Pacheco 123d493d27 sort output from multiple sources 2012-05-11 16:22:28 -07:00
Trent Mick a1c3c17b84 jsstyle clean 2012-04-27 17:40:56 -07:00
Trent Mick 6f1433c89b 'make testall' to test against multiple node versions
Change test to look for new ENOENT error message changed in recent
nodes:

      // Note: node v0.6.10:
      //   ENOENT, no such file or directory 'asdf.log'
      // but node v0.6.14:
      //   ENOENT, open 'asdf.log'
      // Somewhat annoying change.
2012-04-10 15:11:55 -07:00
Trent Mick 9feb9c82bd CLI file args: bunyan foo.log bar.log 2012-02-23 21:19:28 -08:00