Commit graph

666 commits

Author SHA1 Message Date
Martijn Schrage
d9c5970be2 Don't advance to next rotation time when timeout fires early
Fixes #344
2016-02-28 21:44:40 -08:00
Trent Mick
97a678d8d1 changelog for #234/#354 2016-02-21 22:24:52 -08:00
Michael Nisi
99f3c47793 Check body length to prevent empty lines 2016-02-21 22:20:21 -08:00
Trent Mick
f36943bb2d bumpver for subsequent work 2016-02-21 17:18:54 -08:00
Trent Mick
2000006ccd 1.7.0 2016-02-21 17:18:33 -08:00
Trent Mick
c5301bd615 doc: the term 'improvement' is less restrictive I find 2016-02-21 16:41:21 -08:00
mlucool
30ea619626 Added npm link in readme 2016-02-21 18:25:32 -05:00
Trent Mick
cd7dc6a92c Improve the runtime environment detection to fix running under NW.js.
Contributions by Adam Lynch (#310), Jeremy Ruppel (#311),
and Aleksey Timchenko (#302).
2016-02-21 13:31:57 -08:00
Trent Mick
8b94e81fa7 'reemitErrorEvents' bool on Bunyan streams to control error event handling
Related to PR #318.
2016-02-20 18:04:47 -08:00
Trent Mick
4db35d5e3c reflow recent README addition 2016-02-12 08:36:59 -08:00
Alex Ray
f505d28ec3 Documented stream levels as a severity threshold 2016-02-12 08:35:03 -08:00
Trent Mick
0b0ba89aba Mark had a few helpful doc PRs 2016-02-11 22:22:33 -08:00
Trent Mick
9ec59b43e0 docs: Add 'Constructor API', improve 'Log Method API' section
The former motived by #273.
2016-02-11 22:20:32 -08:00
Trent Mick
5c33681374 docs: improve details on serializers
Motivated by #270, thanks Mark!
2016-02-11 22:00:28 -08:00
Mark Stosberg
6103afadba Make field-subheadings as "<h2>" to make them a little easier to find. 2016-02-11 21:36:29 -08:00
Mark Stosberg
95fca4d805 Link to License. 2016-02-11 21:36:29 -08:00
Trent Mick
1baff9d57b cutarelease: tigher "$version" commit message for release ver; add date to release tag 2016-02-11 21:31:52 -08:00
Trent Mick
6fdc5ff209 Style/changelog/readme/test case for "error" event re-emitting.
PR: #318
2016-02-10 23:38:23 -08:00
Marc Udoff
e0e06d3af5 Any stream with an on function will register for error 2016-02-10 23:29:48 -08:00
Trent Mick
f299ac98f2 some readme tweaks 2016-02-10 23:05:46 -08:00
Trent Mick
904c29eebd prep for future dev 2016-02-10 22:36:32 -08:00
Trent Mick
a018ea46a7 prepare for 1.6.0 release 2016-02-10 22:36:17 -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
c1662212f8 node-bunyan#252 forgot to commit this file for test case 2016-02-10 00:05:02 -08:00
Trent Mick
30fa3da5e9 node-bunyan#252 changelog and test case 2016-02-10 00:03:21 -08:00
Thomas Heymann
18e6023dd0 node-bunyan#252 Fixed typo and removed duplicate newline chars
* "client_res" wasn't removed properly resulting in "client_res={}" logs in extras
* duplicate new line characters were added when client_req.address wasn't set
2016-02-10 00:02:16 -08:00
Trent Mick
5660501664 Add a MuteByEnvVars example to show how #175/#176 could be done. 2016-02-03 08:36:40 -08:00
Trent Mick
788ad7cefe fix LOG.child(...) to *not* override the "hostname" field of the parent
Fixes #291. Fixes #303.
2016-02-02 23:45:31 -08:00
Trent Mick
c3b76b1f15 doc: Markup fixes.
Fixes #316. Fixes #331.
2016-02-02 23:25:19 -08:00
Trent Mick
fbe20e7ea3 changelog notes for recent changes 2016-02-02 23:24:40 -08:00
Trent Mick
2a5e1fc715 Allow one to set level: 0 in createLogger to turn on logging for all levels.
Fixes #325.
2016-02-02 23:12:02 -08:00
Trent Mick
b0b9bed17b docs: update notes on log levels
Hopefully helps clarify questions like #340 and #305.
2016-01-31 17:35:45 -08:00
Trent Mick
cc7606a60d update copyright years 2016-01-30 18:00:03 -08:00
Trent Mick
842d489f3c 'Type-Unknown' label use in GH issues 2016-01-30 17:55:20 -08:00
Trent Mick
3671c2c17c fix 'make test4' and 'make test5'. Add testing of node 5 to 'make testall' (working) 2016-01-29 06:47:30 +00:00
Trent Mick
2c9c83d4c3 update 'make testall' to test on node 4, 0.12, 0.10. Not node 5 yet because I get errors still 2016-01-27 22:04:34 -08:00
Trent Mick
c6d805f107 linking, grammar 2016-01-27 21:39:56 -08:00
Trent Mick
2e108c2698 markup fixes 2016-01-27 21:37:23 -08:00
Trent Mick
c8aabfd7ca links to some tickets 2016-01-27 21:32:02 -08:00
Trent Mick
f364a5864a some issue label tweaks and updates from having gone through all 'needslabels' 2016-01-24 22:29:54 -08:00
Trent Mick
42d2f657fe node-bunyan#335: start a contributing howto 2016-01-23 17:49:41 -08:00
Trent Mick
4619d33b57 prep for future dev 2015-09-07 14:45:14 -07:00
Trent Mick
49891f480d prepare for 1.5.1 release 2015-09-07 14:44:59 -07:00
Trent Mick
3554d8076f fix 'make versioncheck' broken in prev commit 2015-09-07 14:44:52 -07:00
Trent Mick
77e239ce24 drop redundant 'bunyan' from changelog release entries as I've moved to in other projects 2015-09-07 14:40:31 -07:00
Trent Mick
86b6769087 Fix src: true, which was broken in v1.5.0.
Also add a test case for `src: true` which is how 1.5.0 got released
without noticing this.

Fixes #296.
2015-09-07 14:37:29 -07:00
Trent Mick
2975178220 prep for future dev 2015-09-07 01:27:17 -07:00