{"_id":"@barbershopio/iso-log","_rev":"12-fdc9524a91e601843a83b2585b79d8a5","name":"@barbershopio/iso-log","description":"An isomorphic logger with sugar on top.","dist-tags":{"latest":"0.1.14"},"versions":{"0.1.12":{"name":"@barbershopio/iso-log","version":"0.1.12","description":"An isomorphic logger with sugar on top.","repository":{"type":"git","url":"git+https://github.com/barbershop/iso-log.git"},"homepage":"https://github.com/barbershop/iso-log","main":"index.js","scripts":{"test":"echo 'No tests (yet)'","build":"babel src --out-dir build --presets=es2015"},"author":{"name":"Ken Goldfarb"},"license":"MIT","dependencies":{"chalk":"^1.1.3","source-map":"^0.5.6","superagent":"^3.5.2"},"devDependencies":{"babel-cli":"^6.24.1","babel-preset-es2015":"^6.24.1"},"gitHead":"2410956c55866b4d44f39cf06c5d55b58284ec90","bugs":{"url":"https://github.com/barbershop/iso-log/issues"},"_id":"@barbershopio/iso-log@0.1.12","_shasum":"e857d344e56b0ffd061d114b3dd53633e58dc71c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"kengoldfarb","email":"hello@kengoldfarb.com"},"dist":{"shasum":"e857d344e56b0ffd061d114b3dd53633e58dc71c","tarball":"https://registry.npmjs.org/@barbershopio/iso-log/-/iso-log-0.1.12.tgz","integrity":"sha512-moAIUMXB13kEmzXTyT4NWPb91RtqjdwtN4qWSfl24HVr5f0JGEAu47Cfu+Xgfho6G0lksBVYRYp288DQd/eIMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEwHEHKJ3ocS8Zd43iP0cSDsLVW602r1d6m//QUlY+NeAiByVb3X9Li8/8qVZby7Ig0Kecw+K3FBlVjxOFsiH0fgMQ=="}]},"maintainers":[{"name":"kengoldfarb","email":"hello@kengoldfarb.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iso-log-0.1.12.tgz_1501274805671_0.3354020821861923"},"directories":{}},"0.1.13":{"name":"@barbershopio/iso-log","version":"0.1.13","description":"An isomorphic logger with sugar on top.","repository":{"type":"git","url":"git+https://github.com/barbershop/iso-log.git"},"homepage":"https://github.com/barbershop/iso-log","main":"index.js","scripts":{"test":"echo 'No tests (yet)'","build":"babel src --out-dir build --presets=es2015"},"author":{"name":"Ken Goldfarb"},"license":"MIT","dependencies":{"chalk":"^1.1.3","source-map":"^0.5.6","superagent":"^3.5.2"},"devDependencies":{"babel-cli":"^6.24.1","babel-preset-es2015":"^6.24.1"},"gitHead":"209040f615f630b39fca3ddaa8f13c3b01ad6246","bugs":{"url":"https://github.com/barbershop/iso-log/issues"},"_id":"@barbershopio/iso-log@0.1.13","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"kengoldfarb","email":"hello@kengoldfarb.com"},"dist":{"integrity":"sha512-GcSTAb/KFtHY+PMklLWGB60Hx2mGNxpnp/2wtKUbi3oeq8p6rR70lPrqayP60GOfAZouxuHuox2CH8SQbJ4NvA==","shasum":"198ae78b1b4b3c308a9e69c867ad00e2921e72ef","tarball":"https://registry.npmjs.org/@barbershopio/iso-log/-/iso-log-0.1.13.tgz","fileCount":9,"unpackedSize":143150,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDKkmVRMVKlQusVetFlUp+jNGc00xp6wHiYaLrYVvlT5AiA2QZYrl7xySjV84ePczkjidynLJne5B3zh9dJgDO0EeA=="}]},"maintainers":[{"email":"hello@barbershop.io","name":"barbershop"},{"email":"caseymetz@gmail.com","name":"casey1449"},{"email":"hello@kengoldfarb.com","name":"kengoldfarb"},{"email":"mike@barbershop.io","name":"mike_dixon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iso-log_0.1.13_1520320370464_0.14704185137378412"},"_hasShrinkwrap":false},"0.1.14":{"name":"@barbershopio/iso-log","version":"0.1.14","description":"An isomorphic logger with sugar on top.","repository":{"type":"git","url":"git+https://github.com/barbershop/iso-log.git"},"homepage":"https://github.com/barbershop/iso-log","main":"index.js","scripts":{"test":"echo 'No tests (yet)'","build":"babel src --out-dir build --presets=es2015"},"author":{"name":"Ken Goldfarb"},"license":"MIT","dependencies":{"chalk":"^1.1.3","source-map":"^0.5.6","superagent":"^3.5.2"},"devDependencies":{"babel-cli":"^6.24.1","babel-preset-es2015":"^6.24.1"},"gitHead":"889a9d42d344371ad6548ed6966373fe64fae028","bugs":{"url":"https://github.com/barbershop/iso-log/issues"},"_id":"@barbershopio/iso-log@0.1.14","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"kengoldfarb","email":"hello@kengoldfarb.com"},"dist":{"integrity":"sha512-wJlxP/ZOs52gDR7GWhT29J7lqnyxpWGbdyhmWeKJ8zSKBJwve/uLgT0Pa+YZwz76Shiy25uisjKVFJt95LP5fA==","shasum":"6fb50b7714b4f43bcc6b052b425b1fe33b322602","tarball":"https://registry.npmjs.org/@barbershopio/iso-log/-/iso-log-0.1.14.tgz","fileCount":9,"unpackedSize":143142,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcCWt3CRA9TVsSAnZWagAAkwcQAJw9M4RbTs3FF46pUrcn\nXmVqtfg24f63C2s4n7tA48pKvQenNUbMjVQECJyeoI4yHsDt/EQaYXtDJdaH\n7K5IKHc+fcYHgs7nJFHGdxCJCR61dHXlAFvBBLaQ42A0BM+LOvxGa7JVlTaX\n2OfkGhYj+ZIVrRhcqlDY0o6XbgDYD6l2P1cHpwmZ884LBEnAYbJC1rHf0h6a\nW42LvtehPjINm27wnCZhCSXdSXtxHgTqaYh7kSDZqnNPdZEVIUmsq+5gmxPq\nSj8wrgyDmsL4OVXcio0v5uMwuYX8iDHExNxpfnpyaqU0F6VJrWFBaouOl4CG\nvJjbd3FZXiLu9mH4IpqyWajvThhy6S2oksL8aQFyvxaomuGtzZKGwWjixz59\n1xyGhDGAMpscfSyz0CfkurF8s3f7qEiKzy0JV/ziGZ9vDkGj44tsY7yhvZ2V\n6y8dHI2Ao/cifEltPzi7cA1Xot9ATCmLDlcqsZXLqelHLfds51DGlzJfywAS\ns2EUFrIKwJnMNsFzYl/hvf6Ddo579fAiXeRmGJC89rw7Cz645ZrbQ9ldfP9B\nNgohcNk4PMWj1libHY3+iZiGSn+ibnqp2Bw5Vlt/EXEj9lbFieJg4JT4rsjP\n/ISkg+BjWxdh8KJojhMRD7DW3exiFuo5WL+XMzEKWgS/EWzNV63y1jCMkrYe\nF+pM\r\n=sPH7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF+zsO+CA9AK15V5Q9NWPZjNmzI81rv4KT9lxF+16+edAiEAwi2u+FFfVOtZ2LWfyOHIDnMDmKMBTw3uAmwjdYYkzIU="}]},"maintainers":[{"email":"hello@barbershop.io","name":"barbershop"},{"email":"brandonminch@gmail.com","name":"bminch"},{"email":"hartigan.hm@gmail.com","name":"hartiganhm"},{"email":"hello@kengoldfarb.com","name":"kengoldfarb"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iso-log_0.1.14_1544121206661_0.667083204273051"},"_hasShrinkwrap":false}},"readme":"# iso-log\n\nAn isomorphic logger with sugar on top.\n\nIn browser console:\n\n![Console](https://raw.githubusercontent.com/kengoldfarb/iso-log/master/screenshots/console.png)\n\nAnd in terminal:\n\n![Terminal](https://raw.githubusercontent.com/kengoldfarb/iso-log/master/screenshots/terminal.png)\n\n### Features\n\n* Works both client and server side\n\n* Log levels\n\n* Outputs logs using native ```console``` methods\n\n* Trace log statements to files and lines\n\n* Sourcemap support\n\n## Installation\n\n```\nyarn add @barbershopio/iso-log\n```\n\n## Usage\n\n```javascript\nconst log = require('@barbershopio/iso-log');\nlog.setOptions({\n\tlevel: 'debug',\n\tuseTrace: true,\n\tuseSourcemaps: true\n});\n\nlog.debug('All set!');\n```\n\n### Options\n\n```level``` - The log level to use.  Default: 'debug'\n\nValid levels are:\n\n```\ntrace\ndebug\nlog\ninfo\nwarn\nerror\nsuperInfo\n```\n\nIf the level specified is ```info```, then ```info```, ```warn```, ```error```, and ```superInfo``` logs would be written to the console.  ```trace``` and ```debug``` logs would NOT be written to the console.\n\n```useTrace``` - Whether to run a trace which will add the file and line number.  Default: true\n\n```useSourcemaps``` - Whether to try to resolve the original file and line number.  Will look for the sourcemap in the corresponding ```.map``` file.  For example, ```/some/js/file.js.map```.  Default: true\n\n### Logging Examples\n\n```javascript\nlog.trace('log at level trace');\nlog.debug('log at level debug');\nlog.log('log at level log');\nlog.info('log at level info');\nlog.warn('log at level warn');\nlog.error('log at level error');\nlog.superInfo('log at level error');\n\nlog.crit('log at level error'); // alias of 'error'\nlog.fatal('log at level error'); // alias of 'error'\n\n// Anything that can be passed to console.log can be passed to the logger\nlog.debug({some: 'object here'});\nlog.debug('multiple things', 'getting logged here', {some: 'object here'});\n```\n\n### Sourcemaps and Webpack\n\nFor source maps to properly work you'll need to make sure you're generating them (with the original source info).  If you're using webpack you can add this to your config:\n\n```javascript\n{\n\tdevtool: 'cheap-module-source-map';\n}\n```\n\nIf you're using webpack and receive a ```Module not found: Error: Can't resolve 'fs'```, just add the following to your webpack config:\n\n```javascript\nnode: {\n\tfs: 'empty'\n};\n```","maintainers":[{"email":"brandonminch@gmail.com","name":"bminch"},{"email":"hello@barbershop.io","name":"barbershop"},{"email":"hello@kengoldfarb.com","name":"kengoldfarb"}],"time":{"modified":"2022-06-12T15:02:26.897Z","created":"2017-07-28T20:46:46.809Z","0.1.12":"2017-07-28T20:46:46.809Z","0.1.13":"2018-03-06T07:12:50.508Z","0.1.14":"2018-12-06T18:33:26.827Z"},"homepage":"https://github.com/barbershop/iso-log","repository":{"type":"git","url":"git+https://github.com/barbershop/iso-log.git"},"author":{"name":"Ken Goldfarb"},"bugs":{"url":"https://github.com/barbershop/iso-log/issues"},"license":"MIT","readmeFilename":"README.md"}