Commit Graph

678 Commits (1.8.12)

Author SHA1 Message Date
Trent Mick 22669dbd32 Reset `haveNonRawStreams` on `<logger>.addStream`
Fixed #218
2015-02-05 21:45:55 -08:00
Trent Mick 265c42f58f Merge pull request #221 from sethpollack/patch-1
add third-party stream for slack
2015-01-28 14:36:26 -08:00
Seth Pollack 3d786a84f0 add third-party stream for slack 2015-01-28 16:49:53 -05:00
Trent Mick 6cabaa9a0b prep for future dev 2015-01-26 09:24:03 -08:00
Trent Mick e6cff79167 prepare for 1.3.3 release 2015-01-26 09:23:52 -08:00
Trent Mick b7cacf6f7f changelog for recent change; TODO 2015-01-25 21:18:50 -08:00
Rui Marinho df5044d4dc Update dtrace-provider@0.4.0
Adds io.js support.

Closes #212.
2015-01-24 00:21:50 +00:00
Trent Mick ffd9903d74 prep for future dev 2015-01-18 23:29:43 -08:00
Trent Mick 8598a479ed prepare for 1.3.2 release 2015-01-18 23:29:33 -08:00
Trent Mick 64b8fd1004 test cases for #182, style tweaks, changelog, etc. 2015-01-18 23:27:28 -08:00
Martin Gausby c0ca774238 Defend against throwing defined props in stringify
If an object has a defined property, that is enumerable, and this
property throws an error, it will make JSON stringify throw an
error, and potentially bring down the program.

The solution so far is to try-catch with the usual json stringifyer,
that guards against circular references. If this throws an error
we will attempt to guard against defined properties; and return
[Throws] if a property throws an error when accesed.

The following examples illustrate the problem:

```js
var obj = {};
obj.__defineGetter__('foo', function() { throw new Error('ouch!'); });

JSON.stringify(obj.foo); // error thrown
```

And using `Object.defineProperty`:
```js
var obj = {};
Object.defineProperty(obj, 'foo', {
    get: function() { throw new Error('ouch!'); }
    enumerable: true // enumerable is false by default
});

JSON.stringify(obj.foo); // error thrown
```

The cases we have seen in production is third party modules that
has enumerable getters that try to access properties on undefined
objects.

Fixes #182.
2015-01-18 23:27:06 -08:00
Trent Mick a96a1d50b3 Make it more clear that you can run most of the test suite without root and how to skip the root-y parts. 2015-01-18 21:24:38 -08:00
Trent Mick bed6fbfb66 prep for future dev 2015-01-17 22:05:16 -08:00
Trent Mick d61fd2f473 prepare for 1.3.1 release 2015-01-17 22:05:06 -08:00
Trent Mick 08a4bab1ba fix 'make check' 2015-01-17 22:04:39 -08:00
Trent Mick b9e3a0d3cb export 'bunyan.RotatingFileStream' 2015-01-17 21:56:46 -08:00
Trent Mick 83f33890de added integration with source-map-support for integration with sourcemaps
Style updates, changelog, etc. Fixes #122
2015-01-17 21:15:38 -08:00
Trent Mick 1ed684d110 Ensure a top-level `level` given in `bunyan.createLogger` is *used* for given `streams`
Fixes #164
2015-01-17 20:39:06 -08:00
Trent Mick b975c3a9f8 prep for future dev 2015-01-17 13:34:33 -08:00
Trent Mick 6b9ce6162b prepare for 1.3.0 release 2015-01-17 13:34:24 -08:00
Trent Mick 838b1995ef correct version 2015-01-17 13:34:02 -08:00
Trent Mick f4b97a4952 fix 'make check'; correct version 2015-01-17 13:33:12 -08:00
Trent Mick 28e52193c6 meta data prepping for release 2015-01-16 23:02:29 -08:00
Trent Mick 132444dec3 update docs for recent '-L' option addition 2015-01-16 22:38:14 -08:00
Trent Mick da440c9324 Merge pull request #203 from cb1kenobi/useless_level
Removed useless level check.
2015-01-16 22:33:45 -08:00
Trent Mick 7dfde13ac3 Correct error added in commit d77f8247
Also, bump minor ver for `-L` CLI addition and coming release.
2015-01-16 22:31:50 -08:00
Trent Mick 978a2439a3 Merge pull request #204 from cb1kenobi/readme-typo
Fixed typo in the readme.
2015-01-16 22:27:11 -08:00
Trent Mick 0d040acb3a `bunyan -L` (or `bunyan --time local`) to show local time.
Fixes #103
2015-01-16 22:21:23 -08:00
Trent Mick d412ecef12 improve 'the bunyan cli has crashed' messaging 2015-01-16 21:08:42 -08:00
Trent Mick d77f824723 improve rotating-file assert on 'count' field
Fixes #207, #208
2015-01-16 09:00:13 -08:00
Trent Mick 783b1c4e39 prep for future dev 2015-01-15 22:20:21 -08:00
Trent Mick a70c0eb969 prepare for 1.2.4 release 2015-01-15 22:20:11 -08:00
Trent Mick 4009692cdb fix 'make check' 2015-01-15 22:19:59 -08:00
Trent Mick 7c0b566e63 [issue #210] Export `bunyan.nameFromLevel` and `bunyan.levelFromName` 2015-01-15 22:18:29 -08:00
Chris Barber 78826c5dba Fixed typo in the readme. 2014-12-28 21:40:16 -08:00
Chris Barber ee5d9b8082 Removed unless level check. 2014-12-28 21:37:21 -08:00
Trent Mick 2f95bb8091 Gracefully handle use of an unbound `Logger.{info,debug,...}` 2014-12-08 10:43:33 -08:00
Connor Peet 1e793b182c Don't make objCopy crash on non-objects 2014-12-05 22:23:43 -05:00
Trent Mick b284480e5e tweaks to this timing tool when looking at #182 2014-11-17 22:49:38 -08:00
Trent Mick 79fc7178bd prep for future dev 2014-11-17 21:46:54 -08:00
Trent Mick a86f20aee5 prepare for 1.2.3 release 2014-11-17 21:46:45 -08:00
Trent Mick 980e281096 #185 add some comments, const, Daniel to authors, and changelog 2014-11-17 21:45:41 -08:00
Daniel Juhl a280863be6 Handle far future timeouts for logrotation
Limit the delay to 2147483647 and then check in rotate() whether we should actually rotate the files or just issue another timeout.

Fixes #184, #185.
2014-11-17 21:43:45 -08:00
Trent Mick 8558935084 Update install note for reintroduction of dtrace-provider in v1.2.0 2014-11-17 21:09:19 -08:00
Trent Mick 48a903c040 prep for future dev 2014-11-13 23:15:55 -08:00
Trent Mick 6bdf6d95b0 prepare for 1.2.2 release 2014-11-13 23:15:45 -08:00
Trent Mick 74a2a1c57d allow Logger level values outside TRACE..FATAL 2014-11-13 23:15:21 -08:00
Trent Mick e43a1a405f prep for future dev 2014-10-25 21:06:13 -07:00
Trent Mick 7aa8f73829 prepare for 1.2.1 release 2014-10-25 21:06:03 -07:00
Trent Mick 603ce3c18b Get at least dtrace-provider 0.3.1 for optionalDependencies
...to get a fix for install with decoupled npm (e.g. with homebrew's
node and npm).

Fixes #178 #181.
2014-10-25 21:05:12 -07:00