Changelog History
Page 3
-
v1.7.0 Changes
[pull #311, #302, #310] Improve the runtime environment detection to fix running under NW.js. Contributions by Adam Lynch, Jeremy Ruppel, and Aleksey Timchenko.
[pull #318] Add
reemitErrorEvents
optional boolean for streams added to a Bunyan logger to control whether an "error" event on the stream will be re-emitted on theLogger
instance.var log = bunyan.createLogger({ name: 'foo', streams: [ { type: 'raw', stream: new MyCustomStream(), reemitErrorEvents: true } ] });
Before this change, "error" events were re-emitted on
file
streams only. The new behaviour is as follows:- `reemitErrorEvents` not specified: `file` streams will re-emit error events on the Logger instance. - `reemitErrorEvents: true`: error events will be re-emitted on the Logger for any stream with a `.on()` function -- which includes file streams, process.stdout/stderr, and any object that inherits from EventEmitter. - `reemitErrorEvents: false`: error events will not be re-emitted for any streams.
Dev Note: Bunyan
Logger
objects don't currently have a.close()
method in which registered error event handlers can be *un*registered. That means that a (presumably rare) situation where code adds dozens of Bunyan Logger streams to, e.g. process.stdout, and withreemitErrorEvents: true
, could result in leaking Logger objects.Original work for allowing "error" re-emitting on non-file streams is by Marc Udoff in pull #318.
-
v1.6.0 Changes
[pull #304, issue #245] Use [Moment.js][momentjs.com] library to handle
bunyan
CLI time formatting in some cases, especially to fix display of local time. It is now required for local time formatting (i.e.bunyan -L
orbunyan --time local
). (By David M. Lee.)[pull #252] Fix errant
client_res={}
inbunyan
CLI rendering, and avoid extra newlines inclient_req
rendering in some cases. (By Thomas Heymann.)[pull #291, issue #303] Fix
LOG.child(...)
to not override the "hostname" field of the parent. A use case is when one manually sets "hostname" to something other thanos.hostname()
. (By github.com/Cactusbone.)[issue #325] Allow one to set
level: 0
increateLogger
to turn on logging for all levels. (Adapted from #336 by github.com/sometimesalready.)➕ Add guards (to
resolveLevel
) so that all "level" values are validated. Before this, a bogus level like "foo" or -12 or['some', 'array']
would silently be accepted -- with undefined results.⚡️ Doc updates for #340 and #305.
⚡️ Update
make test
to test against node 5, 4, 0.12 and 0.10.
-
v1.5.1 Changes
- [issue #296] Fix
src: true
, which was broken in v1.5.0.
- [issue #296] Fix
-
v1.5.0 Changes
🚀 Note: Bad release. The addition of
'use strict';
broke Bunyan'ssrc: true
🔋 feature. Use 1.5.1 instead.- 💻 [pull #236, issue #231, issue #223] Fix strict mode in the browser.
- 🛠 [pull #282, issue #213] Fixes bunyan to work with webpack. By Denis Izmaylov.
- ⚡️ [pull #294] Update to dtrace-provider 0.6 to fix with node 4.0 and io.js 3.0.
- ⬇️ Dropped support for 0.8 (can't install deps easily anymore for running test suite). Bump to a recent iojs version for testing.
-
v1.4.0 Changes
(Bumping minor ver b/c I'm wary of dtrace-provider changes. :)
- ⚡️ [issue #258, pull #259] Update to dtrace-provider 0.5 to fix install and tests on recent io.js versions.
- ✅ [email protected] changed output, breaking some tests. Fix those.
-
v1.3.6 Changes
- [issue #244] Make
bunyan
defensive onres.header=null
.
- [issue #244] Make
-
v1.3.5 Changes
- [issue #233] Make
bunyan
defensive on res.header as a boolean. - [issue #242] Make
bunyan
defensive on err.stack not being a string.
- [issue #233] Make
-
v1.3.4 Changes
- Allow
log.child(...)
to work even if the logger is a sub-class of Bunyan's Logger class. - 💻 [issue #219] Hide 'source-map-support' require from browserify.
- [issue #218] Reset
haveNonRawStreams
on<logger>.addStream
.
- Allow
-
v1.3.3 Changes
- ⚡️ [pull #127] Update to dtrace-provider 0.4.0, which gives io.js 1.x support for dtrace-y parts of Bunyan.
-
v1.3.2 Changes
- [pull #182] Fallback to using the optional 'safe-json-stringify' module
if
JSON.stringify
throws -- possibly with an enumerable property getter than throws. By Martin Gausby.
- [pull #182] Fallback to using the optional 'safe-json-stringify' module
if