{"_id":"seneca-log-filter","_rev":"5-9d136a0c9eecf6fcafee851259c3b939","name":"seneca-log-filter","description":"Seneca log filtering module","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"seneca-log-filter","version":"0.0.1","description":"Seneca log filtering module","main":"seneca-log-filter.js","pre-commit":["test"],"scripts":{"test":"lab -v -P test -L -t 90","coveralls":"lab -s -P test -r lcov | coveralls","coverage":"lab -v -P test -L -t 90 -r html > docs/coverage.html","annotate":"docco seneca-log-filter.js lib/*.js -o docs/annotated"},"repository":{"type":"git","url":"git+https://github.com/senecajs/seneca-log-filter.git"},"keywords":["seneca","log","filter"],"author":{"name":"David Gonzalez","url":"https://www.github.com/dgonzalez"},"license":"MIT","bugs":{"url":"https://github.com/senecajs/seneca-log-filter/issues"},"homepage":"https://github.com/senecajs/seneca-log-filter#readme","devDependencies":{"code":"^3.0.2","eslint-config-seneca":"^3.0.0","eslint-plugin-hapi":"^4.0.0","eslint-plugin-standard":"^2.0.0","lab":"^11.0.1","pre-commit":"^1.1.3"},"dependencies":{"lodash":"4.15.0"},"gitHead":"6cd1a51e8f83fcc13998b97ff1d399ebe6d4c1d5","_id":"seneca-log-filter@0.0.1","_shasum":"aab4a9c9a8e0628ccfbe0a0b23e305b0390a3777","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"mihaidma","email":"mihaizn@gmail.com"},"dist":{"shasum":"aab4a9c9a8e0628ccfbe0a0b23e305b0390a3777","tarball":"https://registry.npmjs.org/seneca-log-filter/-/seneca-log-filter-0.0.1.tgz","integrity":"sha512-y9bXwBzkaPobyhkCRIjg6GBXTgPhGjiS4B9hEvwMnXViEUfcfv/19ijVT1PM3yMrX6d7om8kk7UvHp3ySxY60g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLWx4dXpqSbUijWIFH0CNRSVZ4KcMJzFtzTqzV0KPdVgIhAObNLzpJfFFsWqx80DMaAn21WEAxCyi9IUHNUlMJsJ29"}]},"maintainers":[{"name":"mihaidma","email":"mihaizn@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/seneca-log-filter-0.0.1.tgz_1473678057306_0.47257470921613276"}},"0.1.0":{"name":"seneca-log-filter","version":"0.1.0","description":"Seneca log filtering module","main":"seneca-log-filter.js","pre-commit":["test"],"scripts":{"test":"lab -v -P test -L -t 90","coveralls":"lab -s -P test -r lcov | coveralls","coverage":"lab -v -P test -L -t 90 -r html > docs/coverage.html","annotate":"docco seneca-log-filter.js lib/*.js -o docs/annotated"},"repository":{"type":"git","url":"git+https://github.com/senecajs/seneca-log-filter.git"},"keywords":["seneca","log","filter"],"author":{"name":"David Gonzalez","url":"https://www.github.com/dgonzalez"},"contributors":[{"name":"Dean McDonnell","url":"https://github.com/mcdonnelldean"},{"name":"Mihai Dima","url":"https://github.com/mihaidma"},{"name":"Emer Rutherford","url":"https://github.com/eeswr"}],"license":"MIT","bugs":{"url":"https://github.com/senecajs/seneca-log-filter/issues"},"homepage":"https://github.com/senecajs/seneca-log-filter#readme","devDependencies":{"code":"^3.0.2","eslint-config-seneca":"^3.0.0","eslint-plugin-hapi":"^4.0.0","eslint-plugin-standard":"^2.0.0","lab":"^11.0.1","pre-commit":"^1.1.3"},"dependencies":{"lodash":"4.15.0"},"gitHead":"6d4eb3eba1b89d00728690ed6886720154c35cf2","_id":"seneca-log-filter@0.1.0","_shasum":"f513de77dfdcc120023f847a7c60ceed0afc66b3","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"mihaidma","email":"mihaizn@gmail.com"},"dist":{"shasum":"f513de77dfdcc120023f847a7c60ceed0afc66b3","tarball":"https://registry.npmjs.org/seneca-log-filter/-/seneca-log-filter-0.1.0.tgz","integrity":"sha512-4kKL9H9BFTt6cKlb61/v/0YboPMT0KmUluGQr8t4+3sLlpzenTfUZYaZ3fb6/E7Mx7l4hz741WWYazA8FBMGaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB01snbkw13uNlOg3I/8mj2ORa51fBHiVOk2/iriLxbUAiB2Dt1s0FZWPjqcRLggtyMlbmIpIO6hwLss5Al3j0uIBw=="}]},"maintainers":[{"name":"dagonza","email":"nodearth@gmail.com"},{"name":"mihaidma","email":"mihaizn@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/seneca-log-filter-0.1.0.tgz_1473760231992_0.04105415381491184"}}},"readme":"![Seneca](http://senecajs.org/files/assets/seneca-logo.png)\n> A [Seneca.js](http://senecajs.org) Log Filter Module\n\n\n# seneca-log-filter\n[![npm version][npm-badge]][npm-url]\n[![Build Status][travis-badge]][travis-url]\n[![Coverage Status][coveralls-badge]][coveralls-url]\n[![Dependency Status][david-badge]][david-url]\n[![Gitter chat][gitter-badge]][gitter-url]\n\n- __Sponsor:__ [nearForm][Sponsor]\n\n## Examples\n\n```js\nvar LogFilter = require('seneca-log-filter')\nvar filter = LogFilter({'omit-metadata': true, level: 'info' })\nvar obj = {level: 'info', foo: 'test', bar: 'test' }\n\nvar filteredObj = filter(obj)\n\n// filteredObj is equal to {foo: 'test', bar: 'test' }\n```\n\n## API\n\n### `LogFilter(config)`\n- `config` is an object which can take several properties which change the behaviour of the filter which are listed below.\n  - `level` a required property which states the log level to filter out\n  - `omit-metadata` a value which can be true or false, if true this omits the properties with the names `seneca`, `level` and `when` when filtering an object\n  - `omit` an array of strings of names of properties to omit when filtering an object\n\n#### Returns\nA function which can be called on an object to filter properties out of it.\n\n## Test\n\n```sh\nnpm test\n```\n\n## Contributing\n\nThis module follows the general [Senecajs org][] contribution guidelines, and encourages open participation. If you feel you can help in any way, or discover any Issues, feel free to [create an issue][issue] or [create a pull request][pr]!\n\nIf you wish to read more on our guidelines, feel free to\n\n  - Checkout the concise [contribution file][contrib]\n  - Checkout our much more indepth [contributing guidelines][contribGuide]\n\n\n## License\n\nCopyright (c) 2016, David Gonzalez.\nLicensed under [MIT][].\n\n[MIT]: ./LICENSE\n[npm-badge]: https://badge.fury.io/js/seneca-log-filter.svg\n[npm-url]: https://badge.fury.io/js/seneca-log-filter\n[travis-badge]: https://api.travis-ci.org/senecajs/seneca-log-filter.svg\n[travis-url]: https://travis-ci.org/senecajs/seneca-log-filter\n[coveralls-badge]:https://coveralls.io/repos/senecajs/seneca-log-filter/badge.svg?branch=master&service=github\n[coveralls-url]: https://coveralls.io/github/senecajs/seneca-log-filter?branch=master\n[david-badge]: https://david-dm.org/senecajs/seneca-log-filter.svg\n[david-url]: https://david-dm.org/senecajs/seneca-log-filter\n[gitter-badge]: https://badges.gitter.im/senecajs/seneca.svg\n[gitter-url]: https://gitter.im/senecajs/seneca\n[Senecajs org]: https://github.com/senecajs/\n[issue]: https://github.com/senecajs/seneca-log-filter/issues\n[pr]: https://github.com/senecajs/seneca-log-filter/pulls\n[contrib]: ./CONTRIBUTING.md\n[contribGuide]: http://senecajs.org/contribute/\n[Sponsor]: http://nearform.com\n","maintainers":[{"name":"dagonza","email":"nodearth@gmail.com"},{"name":"mihaidma","email":"mihaizn@gmail.com"}],"time":{"modified":"2022-06-26T17:38:48.632Z","created":"2016-09-12T11:00:59.167Z","0.0.1":"2016-09-12T11:00:59.167Z","0.1.0":"2016-09-13T09:50:33.799Z"},"homepage":"https://github.com/senecajs/seneca-log-filter#readme","keywords":["seneca","log","filter"],"repository":{"type":"git","url":"git+https://github.com/senecajs/seneca-log-filter.git"},"author":{"name":"David Gonzalez","url":"https://www.github.com/dgonzalez"},"bugs":{"url":"https://github.com/senecajs/seneca-log-filter/issues"},"license":"MIT","readmeFilename":"README.md","contributors":[{"name":"Dean McDonnell","url":"https://github.com/mcdonnelldean"},{"name":"Mihai Dima","url":"https://github.com/mihaidma"},{"name":"Emer Rutherford","url":"https://github.com/eeswr"}]}