{"_id":"@brightproductions/sails-hook-bunyan","_rev":"2-cc985abc020ad4f6a598b8799ef69ace","name":"@brightproductions/sails-hook-bunyan","dist-tags":{"latest":"2.3.0"},"versions":{"2.3.0":{"name":"@brightproductions/sails-hook-bunyan","version":"2.3.0","description":"Bunyan integration for sails.js","main":"index.js","scripts":{"style":"jscs .","lint":"jshint .","unit":"mocha","test":"npm run unit && npm run lint && npm run style"},"repository":{"type":"git","url":"git+https://github.com/markwbrown/sails-hook-bunyan.git"},"keywords":["sails","bunyan","logging"],"author":{"name":"Mark Brown"},"license":"MIT","bugs":{"url":"https://github.com/markwbrown/sails-hook-bunyan/issues"},"homepage":"https://github.com/markwbrown/sails-hook-bunyan","dependencies":{"bunyan":"^1.0.0","sails-hook-bunyan":"^2.2.0"},"devDependencies":{"chai":"^3.3.0","dirty-chai":"^1.2.1","jscs":"^3.0.7","jshint":"^2.8.0","mocha":"^3.2.0","sails":"^0.12.11","sinon":"^1.14.1","sinon-chai":"^2.7.0"},"peerDependencies":{"sails":">=0.11 && <0.13"},"sails":{"isHook":true},"directories":{"test":"test"},"publishConfig":{"access":"public"},"gitHead":"30903fc2b22f74ddf340b12cfd3fdba4c359fd1d","_id":"@brightproductions/sails-hook-bunyan@2.3.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-dV93MSo4zlO5tuk5bU/A7gPp4BL9RZY+B7R5mcyZ9Xlcq3crSX58XD/jw7VecidUJtoyT54rwuvID4bBIEYx8w==","shasum":"6b6771a4996bf007f3f738a0d2728e10b482f253","tarball":"https://registry.npmjs.org/@brightproductions/sails-hook-bunyan/-/sails-hook-bunyan-2.3.0.tgz","fileCount":9,"unpackedSize":23617,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKfAuCRA9TVsSAnZWagAAi3wP/2yURIYuBrXRs2G+UvDD\n8a1DVae4p39v+jR3DQA43upxRBqMbvdO3xRgh4sRO/aGgRTs7dq5lP4rZ59P\naNLRomZW6UH0j29cCuSy8LhXngUY/lHjGHVTa2swUoPzbVcNbogepcKFK69m\ncMeU67Dwrf9cevMQ+5eSZtR8Pi9roGuk44Q3+nBwiv1UKYa8rlQgPhSBEtqY\nPoJNP5MX+tDSh4vfN+GoNnaAE5GubgbV5SUjWeyuF9fn3d9y7fp+tW+LZp5T\nrorlcYl9UfxMfMjL6fGejEKNBwFCTe1dn9RX7Tp7plr1VtSmDXQCShHUQl7b\niuPxoKt+voiFwKgeCP+T8LZh2LOHyaA31UDA/s/w4darEoZC4faMj+4iDF4A\nJAjZPOTcEykqNLos6tljfZbZkDDH7XPB+lLvjHAmAsXHrG8JTqS+n4GKRA9h\n9OvHv1fGhlQMDWaFZI6OvoR4z9La9npExTxV2D0iIP4yLueZizbUIxkcC0nx\nBqcJ6OtjCTLfkIXwGP95DHvXZ6IHoiknAKng4NPAysq+zX1Q7G221InSiayt\neqV0L9qav1TfZ76KtUMcwQsBCSDzY3JOL6JWVlmYyiBWQp9/ZV/3jcehd8i8\nk+1ZLN6gIyTMGt9IPdebn0odmVt9MkYFeKwkgZ2hRsP3U+TNXPPv2ULLa2HX\nSotu\r\n=nHNw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBDhuLLj/KWjfasM9VmbcxEtX3ROorK33cB8b5OgaaZEAiAtBV8XAlvRH1XbjRjyhIcvQcVpXd0CxVxAswS5Eql+Lw=="}]},"maintainers":[{"name":"_mark_","email":"mark@brightproductions.com"}],"_npmUser":{"name":"_mark_","email":"mark@brightproductions.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sails-hook-bunyan_2.3.0_1596583982170_0.846483419744956"},"_hasShrinkwrap":false}},"time":{"created":"2020-08-04T23:33:01.856Z","2.3.0":"2020-08-04T23:33:02.381Z","modified":"2022-04-04T20:40:24.973Z"},"maintainers":[{"email":"brian@brightproductions.com","name":"bpwebdesign"},{"email":"mark@brightproductions.com","name":"_mark_"}],"description":"Bunyan integration for sails.js","homepage":"https://github.com/markwbrown/sails-hook-bunyan","keywords":["sails","bunyan","logging"],"repository":{"type":"git","url":"git+https://github.com/markwbrown/sails-hook-bunyan.git"},"author":{"name":"Mark Brown"},"bugs":{"url":"https://github.com/markwbrown/sails-hook-bunyan/issues"},"license":"MIT","readme":"# sails-hook-bunyan\n\nA [sails hook][] replacing the Sails default logger with Bunyan. Supports sails\n0.12.14.\n\n## Installation\n\nTo use, simply install the module.\n\n```\n$ npm install sails-hook-bunyan\n```\n\n## Configuration\n\nBy default, `sails-hook-bunyan` is configured in the `bunyan` config object,\nhowever, this can be changed in your [hook configuration][].\n\n```JavaScript\nmodule.exports.bunyan = {\n  /** If true, a child logger is injected on each request */\n  injectRequestLogger: true,\n\n  /** If true, log uncaughtExceptions and terminate the process */\n  logUncaughtException: false,\n\n  /** If given, signal to listen on for file rotation */\n  rotationSignal: null,\n\n  /** Convenience setting to log to file */\n  filePath: null,\n\n  logger: {\n    /** Logger name */\n    name: 'sails',\n    /** Bunyan logging level; defaults to info */\n    level: null,\n    /** Bunyan serializers */\n    serializers: bunyan.stdSerializers,\n    /** Array of output streams */\n    streams: null\n  }\n};\n```\n\nBy default, `sails-hook-bunyan` will log to `stdout`. If a `filePath` is\nspecified, it will instead log to the named file. If both `filePath` and\n`bunyan.streams` are specified, the file stream is appended to the list of given\nstreams.\n\nFor `rotationSignal`, it's recommended to use `SIGHUP`. `SIGUSR1` is reserved\nby Node, and will start the debugger. `SIGUSR2` is reserved by Sails, and will\nlower the sails app. Upon receiving the signal, `sails-hook-bunyan` will call\n`bunyan.reopenFileStreams()`; allowing for something like [logrotate][] to\nhandle the actual file rotation logic.\n\n## Add-ons\n\n- [sails-hook-bunyan-request-logger](https://github.com/JeffAshtonCT/sails-hook-bunyan-request-logger) -\nAn extension which replaces the request logger with one that includes request ids\n\n\n [sails hook]: http://sailsjs.org/#!/documentation/concepts/extending-sails/Hooks\n [sails-bunyan]: https://github.com/building5/sails-bunyan\n [hook configuration]: http://sailsjs.org/#!/documentation/concepts/extending-sails/Hooks/usinghooks.html?q=changing-the-way-sails-loads-an-installable-hook\n [logrotate]: http://linux.die.net/man/8/logrotate\n","readmeFilename":"README.md"}