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.16.2

Diff

Changelog

Source

0.16.2

  • Ensure that stderr from the dtrace child process (when using bunyan -p PID) gets through. The pipe usage wasn't working on SmartOS. This is important to show the user if they need to 'sudo'.
trentm
published 0.16.1 •

Changelog

Source

0.16.1

  • Ensure that a possible dtrace child process (with using bunyan -p PID) is terminated on signal termination of the bunyan CLI (at least for SIGINT, SIGQUIT, SIGTERM, SIGHUP).
trentm
published 0.16.0 •

Changelog

Source

0.16.0

  • Add bunyan -p PID support. This is a convenience wrapper that effectively calls:

      dtrace -x strsize=4k -qn 'bunyan$PID:::log-*{printf("%s", copyinstr(arg0))}' | bunyan
    
trentm
published 0.15.0 •

Changelog

Source

0.15.0

  • issue #48: Dtrace support! The elevator pitch is you can watch all logging from all Bunyan-using process with something like this:

      dtrace -x strsize=4k -qn 'bunyan*:::log-*{printf("%d: %s: %s", pid, probefunc, copyinstr(arg0))}'
    

    And this can include log levels below what the service is actually configured to log. E.g. if the service is only logging at INFO level and you need to see DEBUG log messages, with this you can. Obviously this only works on dtrace-y platforms: Illumos derivatives of SunOS (e.g. SmartOS, OmniOS), Mac, FreeBSD.

    Or get the bunyan CLI to render logs nicely:

      dtrace -x strsize=4k -qn 'bunyan*:::log-*{printf("%s", copyinstr(arg0))}' | bunyan
    

    See https://github.com/trentm/node-bunyan#dtrace-support for details. By Bryan Cantrill.

trentm
published 0.14.6 •

Changelog

Source

0.14.6

  • Export bunyan.safeCycles(). This may be useful for custom type == "raw" streams that may do JSON stringification of log records themselves. Usage:

      var str = JSON.stringify(rec, bunyan.safeCycles());
    
  • [issue #49] Allow a log.child() to specify the level of inherited streams. For example:

      # Before
      var childLog = log.child({...});
      childLog.level('debug');
    
      # After
      var childLog = log.child({..., level: 'debug'});
    
  • Improve the Bunyan CLI crash message to make it easier to provide relevant details in a bug report.

trentm
published 0.14.5 •

Changelog

Source

0.14.5

  • Fix a bug in the long-stack-trace error serialization added in 0.14.4. The symptom:

      bunyan@0.14.4: .../node_modules/bunyan/lib/bunyan.js:1002
        var ret = ex.stack || ex.toString();
                    ^
      TypeError: Cannot read property 'stack' of undefined
          at getFullErrorStack (.../node_modules/bunyan/lib/bunyan.js:1002:15)
          ...
    
trentm
published 0.14.4 •

Changelog

Source

0.14.4

  • Bad release. Use 0.14.5 instead.

  • Improve error serialization to walk the chain of .cause() errors from the likes of WError or VError error classes from verror and restify v2.0. Example:

      [2012-10-11T00:30:21.871Z] ERROR: imgapi/99612 on 0525989e-2086-4270-b960-41dd661ebd7d: my-message
          ValidationFailedError: my-message; caused by TypeError: cause-error-message
              at Server.apiPing (/opt/smartdc/imgapi/lib/app.js:45:23)
              at next (/opt/smartdc/imgapi/node_modules/restify/lib/server.js:550:50)
              at Server.setupReq (/opt/smartdc/imgapi/lib/app.js:178:9)
              at next (/opt/smartdc/imgapi/node_modules/restify/lib/server.js:550:50)
              at Server.parseBody (/opt/smartdc/imgapi/node_modules/restify/lib/plugins/body_parser.js:15:33)
              at next (/opt/smartdc/imgapi/node_modules/restify/lib/server.js:550:50)
              at Server.parseQueryString (/opt/smartdc/imgapi/node_modules/restify/lib/plugins/query.js:40:25)
              at next (/opt/smartdc/imgapi/node_modules/restify/lib/server.js:550:50)
              at Server._run (/opt/smartdc/imgapi/node_modules/restify/lib/server.js:579:17)
              at Server._handle.log.trace.req (/opt/smartdc/imgapi/node_modules/restify/lib/server.js:480:38)
          Caused by: TypeError: cause-error-message
              at Server.apiPing (/opt/smartdc/imgapi/lib/app.js:40:25)
              at next (/opt/smartdc/imgapi/node_modules/restify/lib/server.js:550:50)
              at Server.setupReq (/opt/smartdc/imgapi/lib/app.js:178:9)
              at next (/opt/smartdc/imgapi/node_modules/restify/lib/server.js:550:50)
              at Server.parseBody (/opt/smartdc/imgapi/node_modules/restify/lib/plugins/body_parser.js:15:33)
              at next (/opt/smartdc/imgapi/node_modules/restify/lib/server.js:550:50)
              at Server.parseQueryString (/opt/smartdc/imgapi/node_modules/restify/lib/plugins/query.js:40:25)
              at next (/opt/smartdc/imgapi/node_modules/restify/lib/server.js:550:50)
              at Server._run (/opt/smartdc/imgapi/node_modules/restify/lib/server.js:579:17)
              at Server._handle.log.trace.req (/opt/smartdc/imgapi/node_modules/restify/lib/server.js:480:38)
    
trentm
published 0.14.2 •

Changelog

Source

0.14.2

  • [issue #45] Fix bunyan CLI (default output mode) to not crash on a 'res' field that isn't a response object, but a string.
trentm
published 0.14.1 •

Changelog

Source

0.14.1

  • [issue #44] Fix the default bunyan CLI output of a res.body that is an object instead of a string. See issue#38 for the same with req.body.
trentm
published 0.14.0 •

Changelog

Source

0.14.0

  • [pull #41] Safe JSON.stringifying of emitted log records to avoid blowing up on circular objects (by Isaac Schlueter).
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