{"_id":"@bloom42/astro","_rev":"2-feead8b6bc8c36ccb7f4cdeb3d73adb2","name":"@bloom42/astro","dist-tags":{"latest":"0.8.2"},"versions":{"0.8.1":{"name":"@bloom42/astro","version":"0.8.1","description":"Fast, elegant, structured and pluggable logging for Javascript ","main":"lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/bloom42/astro-js.git"},"keywords":["logs","logging","astro","bloom"],"author":{"name":"z0mbie42"},"license":"Apache-2.0","bugs":{"url":"https://github.com/bloom42/astro-js/issues"},"homepage":"https://github.com/bloom42/astro-js","devDependencies":{"babel-cli":"^6.26.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","esdoc":"^1.1.0","esdoc-ecmascript-proposal-plugin":"^1.0.0","esdoc-node":"^1.0.3","esdoc-standard-plugin":"^1.0.0","eslint":"^4.19.1","eslint-config-airbnb-base":"^13.0.0","eslint-plugin-import":"^2.13.0"},"gitHead":"b14b431a4435a1928756c6b154a1318c3c97c675","_id":"@bloom42/astro@0.8.1","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"z0mbie42","email":"sylvain.kerkour@gmail.com"},"dist":{"integrity":"sha512-CXNTCqqwAYBHVgBKGJkQBBYH0qyE+DPUqNfvAVjI2z1EExBWwX/TAqgvMxzbV42BCx5x1PEmtQe0YYxn1WK1qA==","shasum":"4c37d6aa4cc51176c3c3e37104f2ddc18bce1838","tarball":"https://registry.npmjs.org/@bloom42/astro/-/astro-0.8.1.tgz","fileCount":26,"unpackedSize":34325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb/X5+CRA9TVsSAnZWagAA8YQP/2qjZRJ2XBJxjI0AQG4H\nIycmwS0cRwbPph4RDSG2R55CBRXcAVaRasP4OtwQcGuOF8XJQt4q9MnJFjAU\nTEPe5+WtBAVAZSJSpD74iL2uhISwZLw2omHF62wsGcM81bV9ZjC/fyhguTe5\nrwU0h5p3sUqf5lrwQCeitg1OeVA/uSGCk9zphSsWpqfujRYUryFFCA6f8/dP\nGFleBuEzyLjWte4I43HTKGVCBL86kVbHf0kBhV+aR2+ypw2xgikIy6PAs4MH\n2QPrAWzf5uC0LneZeAxFgbBnE1m/1b8dUxrarA3Zsolhcykz+SpqEZ+i9Agw\nDOZfuNOILyiJv1CNaNDda7uwIyfceYyMhuM2emb/sQTyNM9OwDHJQzlgvoUT\nOJFMIyJHW9tqkAC8JD0Mpv2nWg+mJ6aX1fvYmISs8suFxxfWoNftCaeeyVFT\n2Ws2XIEuxSk63oyeEzqhf13BZUfZQdBUwj5q4WM0D2FbQAn7N9aCvSip+aR7\nzmasv5Py20Hkr+5Ty58dQGVL51mXt4r50ZzBJXXjcy1JS5eBmTOGTaOoyPlR\nvCyxvSwZFQ/Vc7weejAMJKiOSoUkCszBW//FGqukmbVkHoxXBTZ4KikVvPBi\n+uMsi+ni5VBxKoRhyzsEdFc1BsB3aX04kT4zA5WAyNPhB6Z+7xpuVApGCSvz\nGrhe\r\n=Kj4R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHkBXxkppeCYUhL5Krp0tPtAkuzJwfXsr3xyvmjupiP9AiBlcmcmizT7AYvQAgMomzL1/RZSAyn1dch/E9LqGFJ9sA=="}]},"maintainers":[{"name":"z0mbie42","email":"sylvain.kerkour@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/astro_0.8.1_1543339645911_0.5176858148390728"},"_hasShrinkwrap":false},"0.8.2":{"name":"@bloom42/astro","version":"0.8.2","description":"Fast, elegant, structured and pluggable logging for Javascript ","main":"lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/bloom42/astro-js.git"},"keywords":["logs","logging","astro","bloom"],"author":{"name":"z0mbie42"},"license":"Apache-2.0","bugs":{"url":"https://github.com/bloom42/astro-js/issues"},"homepage":"https://github.com/bloom42/astro-js","devDependencies":{"babel-cli":"^6.26.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","esdoc":"^1.1.0","esdoc-ecmascript-proposal-plugin":"^1.0.0","esdoc-node":"^1.0.3","esdoc-standard-plugin":"^1.0.0","eslint":"^4.19.1","eslint-config-airbnb-base":"^13.0.0","eslint-plugin-import":"^2.13.0"},"gitHead":"5eb82e29738c10cc1bfb60f851fdb0c4ecdec1d9","_id":"@bloom42/astro@0.8.2","_npmVersion":"6.5.0","_nodeVersion":"11.1.0","_npmUser":{"name":"z0mbie42","email":"sylvain@kerkour.com"},"dist":{"integrity":"sha512-Cb1hFxqUEYeR/hEbmKD7f4Pny/qrf/Wgw+309HPzwg3W+QfV8Uknu7LQCaPsOvXPayDt1PHhcI8Fo3GUlyYhMA==","shasum":"c243a2f38b3099eeea4d2c57c48209fdfd53f6a8","tarball":"https://registry.npmjs.org/@bloom42/astro/-/astro-0.8.2.tgz","fileCount":26,"unpackedSize":34361,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcGXJ/CRA9TVsSAnZWagAAeDIP/3ikMamcRbHl+WvQcZY0\nY+v2UYAkGvxOw6LXJU0UGxVxhIsvF8OzjrQppB7C2GNonYH4VHamQpCXodUl\nabLDl/kJp5HU3co/qUAuyQGVKObu9amI7ly3HaM7T6LonWlxBAqdbUxzv60P\n61waXSf2ZXmFFG7uO6wNEMQThGpjoGMauLSDyrlNBMVoaVSw3OKFdOzYevvy\nPRagqRcSAQ2aJQBVShB6nAZPgwzj6DL752WUdpGkfonWgDXnkuIB8y55REo7\nqauuJDrJZVxWBXso9dhh7vT7Cnl/AB2sGJxn1/HdIekgwn17UgGMVktRxrYq\nZXoykeNNS43YWXXkx64hfvSxViS8Y8L4vua0DTgQyqkRqxULZlMcvCkVqFoP\nUdTsxqAMIb5cR9X7+GKNGl1GeBJlmH7+B+wAyLmGgCOHf2M8iF6ryfNTqilI\nffOcAzlz+dUmqrGHautAZ0reeJAilNyk3AMsBvekIOCwKLfNOVbP302yVCpw\ntb8W/bNqRcx6ZpL9vymvBuU0clnb7MSPYRQU/47SIgUcZrqIbiD7RNR67AqY\nW1HeyEGvVN5tiMgXg/FlU4G1DojQk+h+yrK58g7Z0uEg75QppL4rAp1NStbF\neys1iCa7yUTmoiKRv6BDSmI7b8pDwhbPD2SQkZ6cgnl4HyhIz12QLnbYyPhg\nSE9P\r\n=Tczi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpxiLWISeM57Dbt9j6dP4AonFbxGH8JhrgkF6GgClpEQIhANNEwMtzZmGJzZ8ViIZ7O6oaAYDb4JMSqMMCWvHXONLj"}]},"maintainers":[{"name":"z0mbie42","email":"sylvain.kerkour@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/astro_0.8.2_1545171582691_0.7436875325101948"},"_hasShrinkwrap":false}},"time":{"created":"2018-11-27T17:27:25.756Z","0.8.1":"2018-11-27T17:27:26.066Z","modified":"2022-04-04T19:40:44.385Z","0.8.2":"2018-12-18T22:19:42.798Z"},"maintainers":[{"name":"z0mbie42","email":"sylvain.kerkour@gmail.com"}],"description":"Fast, elegant, structured and pluggable logging for Javascript ","homepage":"https://github.com/bloom42/astro-js","keywords":["logs","logging","astro","bloom"],"repository":{"type":"git","url":"git+https://github.com/bloom42/astro-js.git"},"author":{"name":"z0mbie42"},"bugs":{"url":"https://github.com/bloom42/astro-js/issues"},"license":"Apache-2.0","readme":"## Astro-JS\n\n[Make logging great again](https://kerkour.com/post/logging/)\n\n[![NPM Package](https://img.shields.io/badge/npm-@bloom42/astro-blue.svg)](https://www.npmjs.com/package/@bloom42/astro)\n[![NPM Release](https://img.shields.io/npm/v/@bloom42/astro.svg?colorB=blue)](https://www.npmjs.com/package/@bloom42/astro)\n\n[![NPM](https://nodei.co/npm/@bloom42/astro.png?stars=true)](https://www.npmjs.com/package/@bloom42/astro)\n\n\n1. [Quickstart](#quickstart)\n2. [Configuration](#configuration)\n3. [Log usage](#log-usage)\n4. [Examples](#examples)\n------------------------------\n\n\n## Quickstart\n\n```bash\n$ npm i @bloom42/astro\n```\n\n```javascript\nconst { log } = require('@bloom42/astro');\n\nconst log2 = log.with({ num: 2 });\n\nlog.info('hello world');\nlog2.info('hello world');\nlog.with({ lol: 42 }).error('fatal knock out');\nlog2.with({ num: 3, pi: 3.14 }).info('hello world');\nlog2.info('hello world');\nlog2.track({ description: 'event without message nor level' });\n```\n\n\n## Configuration\n```javascript\n// default configuration\nconst options = {\n  level: Level.DEBUG,\n  fields: {},\n  writer: isBrowser ? console : stdout,\n  insert_timestamp: true,\n  timestamp_field_name: 'timestamp',\n  message_field_name: 'message',\n  level_field_name: 'level',\n  hooks: [],\n};\n\nlog.config(options);\n```\n\n\n## Log usage\n```typescript\nlog.config(options: any)\nlog.with(fields: any): Logger\nlog.debug(message: string)\nlog.info(message: string)\nlog.warn(message: string)\nlog.error(message: string)\nlog.fatal(message: string) // log with the \"fatal\" level then exit(1)\nlog.track(fields: any) // log an event without level nor message\n```\n\n\n## Examples\n\n[See the examples folder](https://github.com/bloom42/astro-js/tree/master/examples)\n","readmeFilename":"README.md"}