Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bunyan

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bunyan - npm Package Versions

1
12

0.10.0

Diff

Changelog

Source

0.10.0

  • [pull #24] Support for gzip'ed log files in the bunyan CLI (by github.com/mhart):

      $ bunyan foo.log.gz
      ...
    
trentm
published 0.9.0 •

Changelog

Source

0.9.0

  • [pull #16] Bullet proof the bunyan.stdSerializers (by github.com/rlidwka).

  • [pull #15] The bunyan CLI will now chronologically merge multiple log streams when it is given multiple file arguments. (by github.com/davepacheco)

      $ bunyan foo.log bar.log
      ... merged log records ...
    
  • [pull #15] A new bunyan.RingBuffer stream class that is useful for keeping the last N log messages in memory. This can be a fast way to keep recent, and thus hopefully relevant, log messages. (by @dapsays, github.com/davepacheco)

    Potential uses: Live debugging if a running process could inspect those messages. One could dump recent log messages at a finer log level than is typically logged on uncaughtException.

      var ringbuffer = new bunyan.RingBuffer({ limit: 100 });
      var log = new bunyan({
          name: 'foo',
          streams: [{
              type: 'raw',
              stream: ringbuffer,
              level: 'debug'
          }]
      });
    
      log.info('hello world');
      console.log(ringbuffer.records);
    
  • Add support for "raw" streams. This is a logging stream that is given raw log record objects instead of a JSON-stringified string.

      function Collector() {
          this.records = [];
      }
      Collector.prototype.write = function (rec) {
          this.records.push(rec);
      }
      var log = new Logger({
          name: 'mylog',
          streams: [{
              type: 'raw',
              stream: new Collector()
          }]
      });
    

    See "examples/raw-stream.js". I expect raw streams to be useful for piping Bunyan logging to separate services (e.g. http://www.loggly.com/, https://github.com/etsy/statsd) or to separate in-process handling.

  • Add test/corpus/*.log files (accidentally excluded) so the test suite actually works(!).

trentm
published 0.8.0 •

Changelog

Source

0.8.0

  • [pull #21] Bunyan loggers now re-emit fs.createWriteStream error events. By github.com/EvanOxfeld. See "examples/handle-fs-error.js" and "test/error-event.js" for details.

      var log = new Logger({name: 'mylog', streams: [{path: FILENAME}]});
      log.on('error', function (err, stream) {
          // Handle error writing to or creating FILENAME.
      });
    
  • jsstyle'ing (via make check)

trentm
published 0.7.0 •

Changelog

Source

0.7.0

  • [issue #12] Add bunyan.createLogger(OPTIONS) form, as is more typical in node.js APIs. This'll eventually become the preferred form.
trentm
published 0.6.9 •

Changelog

Source

0.6.9

  • Change bunyan CLI default output to color "src" info red. Before the "src" information was uncolored. The "src" info is the filename, line number and function name resulting from using src: true in Logger creation. I.e., the (/Users/trentm/tm/node-bunyan/examples/hi.js:10) in:

      [2012-04-10T22:28:58.237Z]  INFO: myapp/39339 on banana.local (/Users/trentm/tm/node-bunyan/examples/hi.js:10): hi
    
  • Tweak bunyan CLI default output to still show an "err" field if it doesn't have a "stack" attribute.

trentm
published 0.6.8 •

Changelog

Source

0.6.8

  • Fix bad bug in log.child({...}, true); where the added child fields would be added to the parent's fields. This bug only existed for the "fast child" path (that second true argument). A side-effect of fixing this is that the "fast child" path is only 5 times as fast as the regular log.child, instead of 10 times faster.
trentm
published 0.6.7 •

Changelog

Source

0.6.7

  • [issue #6] Fix bleeding 'type' var to global namespace. (Thanks Mike!)
trentm
published 0.6.6 •

Changelog

Source

0.6.6

  • Add support to the bunyan CLI taking log file path args, bunyan foo.log, in addition to the usual cat foo.log | bunyan.
  • Improve reliability of the default output formatting of the bunyan CLI. Before it could blow up processing log records missing some expected fields.
trentm
published 0.6.5 •

Changelog

Source

0.6.5

  • ANSI coloring output from bunyan CLI tool (for the default output mode/style). Also add the '--color' option to force coloring if the output stream is not a TTY, e.g. cat my.log | bunyan --color | less -R. Use --no-color to disable coloring, e.g. if your terminal doesn't support ANSI codes.
  • Add 'level' field to log record before custom fields for that record. This just means that the raw record JSON will show the 'level' field earlier, which is a bit nicer for raw reading.
trentm
published 0.6.4 •

Changelog

Source

0.6.4

  • [issue #5] Fix log.info() -> boolean to work properly. Previous all were returning false. Ditto all trace/debug/.../fatal methods.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc