Commit graph

678 commits

Author SHA1 Message Date
Frankie O'Rourke
084f38c005 rotate() OR _setupNextRot() on start 2016-04-21 00:09:59 -07:00
Seoker Wang
306d8e12ee Fix typo in README.md
defualt -> default
2016-04-17 00:10:27 +08:00
Trent Mick
ffc6355b6f bumpver for subsequent work 2016-03-16 22:52:27 -07:00
Trent Mick
dcf23b49d6 1.8.0 2016-03-16 22:52:16 -07:00
Trent Mick
778d0f7049 Fix bunyan -p ... (i.e. DTrace integration) on node 4.x and 5.x
This never worked with node >0.x because of faulty logic determining
`nodeSpawnSupportsStdio` -- attempting to compare with, e.g.,
`Number('v1')`.

Fixes #370
2016-03-16 22:32:52 -07:00
Trent Mick
97026eb4e9 add Paul to contributors list for recent pull 2016-03-06 22:36:29 -08:00
Trent Mick
69e7c7fa9c verbump and changelog for #329, #330 2016-03-06 22:31:43 -08:00
Paul Milham
46d2be4642 rotating-file: auto rotate file on startup if needed
Fixes #239
2016-03-06 22:21:06 -08:00
Trent Mick
bb1ab77c3e bumpver for subsequent work 2016-02-28 22:45:37 -08:00
Trent Mick
b3f72bfb7a 1.7.1 2016-02-28 22:45:25 -08:00
Trent Mick
1ed8ed43f7 changelog for previous commit 2016-02-28 22:42:47 -08:00
Michael Nisi
cf1926fef6 Ensure stream for type='stream' stream is a writable stream :)
Fixes #332
2016-02-28 22:35:56 -08:00
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