Commit Graph

705 Commits (master)

Author SHA1 Message Date
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
Trent Mick e14f191327 prepare for 1.5.0 release 2015-09-07 01:27:01 -07:00
Trent Mick 27d60578a9 strict mode
Should fix usage with bundles including bunyan and using strict mode.
Had to fix a surprise effect that 'window === this' is no longer
true in strict mode:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode
"""That means, among other things, that in browsers it's no longer
possible to reference the window object through this inside a strict
mode function."""

Fixes #236, #231, and #223.
2015-09-07 01:21:43 -07:00
Peter deHaan 6baeb2c581 Add license attribute
https://docs.npmjs.com/files/package.json#license
http://npm1k.org/
2015-09-07 00:42:33 -07:00
Ionică Bizău 9cd70479cb Added the missing syntax highlighting
Added syntax highlighting everywhere and minor formatting.
2015-09-07 00:39:56 -07:00
Trent Mick 4f071a0a37 changelog for webpack fix 2015-09-07 00:32:35 -07:00
Trent Mick bf994a34b3 fix 'make check'; add some recent authors 2015-09-07 00:29:17 -07:00
Denis Izmaylov 466829dc73 Fix issues to work with webpack 2015-09-07 00:18:50 -07:00
Shakeel Mohamed bedb2ae7ff Fixed typos in README 2015-09-07 00:08:17 -07:00
Trent Mick 56f2ac4de5 typo 2015-09-06 23:37:14 -07:00
Yunong Xiao 08710eca4d add link to bunyan kafka plugin 2015-09-06 23:07:29 -07:00
Trent Mick 5e3e86cec3 bump to 1.5.0 2015-09-06 23:03:32 -07:00