{"_id":"bower-logger","_rev":"22-d6911384e29528b759ffbd44a9602736","name":"bower-logger","description":"The logger used in the various architecture components of Bower.","dist-tags":{"latest":"0.2.2"},"versions":{"0.1.0-rc.1":{"name":"bower-logger","version":"0.1.0-rc.1","description":"The logger used in the various architecture components of Bower.","author":{"name":"Twitter"},"licenses":[{"type":"MIT","url":"https://github.com/bower/logger/blob/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/bower/logger.git"},"main":"lib/Logger","engines":{"node":">=0.8.0"},"devDependencies":{"expect.js":"~0.2.0","mocha":"~1.12.0"},"scripts":{"test":"mocha -R spec"},"bugs":{"url":"https://github.com/bower/logger/issues"},"_id":"bower-logger@0.1.0-rc.1","dist":{"shasum":"2b89630c390199c9c5709b2888f78c14acb27ce7","tarball":"https://registry.npmjs.org/bower-logger/-/bower-logger-0.1.0-rc.1.tgz","integrity":"sha512-cZDz2B93ySC+iW4rQrMG1VVCYZs9n12olQQKb+7cl3zasrsvuVvHuy8O0eG58JCU4GhXDXtLhJVTCfN9SjOerQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG+hU4m8z4abDHShFsLWphWwPjgFu/YXHLnUQGWpTyJfAiBJIEyoyasS9JbJx5hM6pf6EdXyykvbW5KT+SR7dPuXdg=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"directories":{}},"0.1.0":{"name":"bower-logger","version":"0.1.0","description":"The logger used in the various architecture components of Bower.","author":{"name":"Twitter"},"licenses":[{"type":"MIT","url":"https://github.com/bower/logger/blob/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/bower/logger.git"},"main":"lib/Logger","engines":{"node":">=0.8.0"},"devDependencies":{"expect.js":"~0.2.0","mocha":"~1.12.0"},"scripts":{"test":"mocha -R spec"},"bugs":{"url":"https://github.com/bower/logger/issues"},"_id":"bower-logger@0.1.0","dist":{"shasum":"a63ce6cda18749b01e474c6bd6cb3d0cd01aafeb","tarball":"https://registry.npmjs.org/bower-logger/-/bower-logger-0.1.0.tgz","integrity":"sha512-q/gJO3g0mt2VKJ2rK4h2aJgE0iiLUAbwHWmd5b4Gnlm7oxNtZEvNrrynFAE0wqvkRNPez2CR3wCdDcW3+VVJrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAkJ3EcVGgURFL02mRmD+oDWf9DW1XWQCs0KUma8DF49AiAIPAREDfeTVsP0skbvmWeEi4tuq7gvLYCx6cwj7bPXsQ=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"directories":{}},"0.2.0":{"name":"bower-logger","version":"0.2.0","description":"The logger used in the various architecture components of Bower.","author":{"name":"Twitter"},"licenses":[{"type":"MIT","url":"https://github.com/bower/logger/blob/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/bower/logger.git"},"main":"lib/Logger","engines":{"node":">=0.8.0"},"devDependencies":{"expect.js":"~0.2.0","mocha":"~1.12.0"},"scripts":{"test":"mocha -R spec"},"bugs":{"url":"https://github.com/bower/logger/issues"},"_id":"bower-logger@0.2.0","dist":{"shasum":"c70705790c70985f4b34805d1f8bb63821a37656","tarball":"https://registry.npmjs.org/bower-logger/-/bower-logger-0.2.0.tgz","integrity":"sha512-pGTigsFHg4K+lOoQ2hrBH5Q3FzVgXmMIWsRfIWF4rMbYYTyEYXGxuv1wMVjh9QGE2e5lbrsyLZzAOhZIQi5Saw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDtD3AxKwD78FbE6NtDc09enTmQ+MVNwoE70kHQzJVYAiEAutUw8OH07Khbr3uCpZyLnjv9z9cFD5ZA5+PXKns2BOw="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"directories":{}},"0.2.1":{"name":"bower-logger","version":"0.2.1","description":"The logger used in the various architecture components of Bower.","author":{"name":"Twitter"},"licenses":[{"type":"MIT","url":"https://github.com/bower/logger/blob/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/bower/logger.git"},"main":"lib/Logger","engines":{"node":">=0.8.0"},"devDependencies":{"expect.js":"~0.2.0","mocha":"~1.12.0"},"scripts":{"test":"mocha -R spec"},"bugs":{"url":"https://github.com/bower/logger/issues"},"_id":"bower-logger@0.2.1","dist":{"shasum":"0c1817c48063a88d96cc3d516c55e57fff5d9ecb","tarball":"https://registry.npmjs.org/bower-logger/-/bower-logger-0.2.1.tgz","integrity":"sha512-z1kTna8TAJnvqhnkXTDBe7d+CX6dNpdQbAcHbm6rIurWCkMDT1JiQZOwJ+EhY52DxEIv+67ENujUZak5eFu3oQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwmgLGbsKo4U2erBwQX9gf0ZwHmq3QYY5cuHG4womdMwIgXhVjKivKJM+icLzCSJTP88Rj26csmMk4KYuMMTRiV/w="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"directories":{}},"0.2.2":{"name":"bower-logger","version":"0.2.2","description":"The logger used in the various architecture components of Bower.","author":{"name":"Twitter"},"licenses":[{"type":"MIT","url":"https://github.com/bower/logger/blob/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/bower/logger.git"},"main":"lib/Logger","engines":{"node":">=0.8.0"},"devDependencies":{"expect.js":"~0.2.0","mocha":"~1.12.0"},"scripts":{"test":"mocha -R spec"},"bugs":{"url":"https://github.com/bower/logger/issues"},"_id":"bower-logger@0.2.2","dist":{"shasum":"39be07e979b2fc8e03a94634205ed9422373d381","tarball":"https://registry.npmjs.org/bower-logger/-/bower-logger-0.2.2.tgz","integrity":"sha512-2x4n3GsmV6w3BeMK3zHv6T88HbuMQH2MJ0KZNbQMbJq8XPARdH1p9/CXsdkOBW5sMcnBCOVGxutDJYbkh2A7QQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFugs+Jre95EXeWNTz1HoksfUP1l+hse8Q0Z6ZKUJDlQAiAXttYiSVlk4vm+e4SQmf+Jqq7VF9I7BMfk5lHDWgdUug=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"wibblymat","email":"mat@wibbly.org.uk"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"},{"name":"paulirish","email":"paul.irish@gmail.com"}],"directories":{}}},"readme":"# bower-logger [![Build Status](https://secure.travis-ci.org/bower/logger.png?branch=master)](http://travis-ci.org/bower/logger)\n\nThe logger used in the various architecture components of Bower.\n\n\n## Usage\n\n### .error(id, message, data)\n\nAlias to `.log('error', id. message, data)`\n\n\n### .conflict(id, message, data)\n\nAlias to `.log('conflict', id. message, data)`\n\n\n### .warn(id, message, data)\n\nAlias to `.log('warn', id. message, data)`\n\n\n### .action(id, message, data)\n\nAlias to `.log('action', id. message, data)`\n\n\n### .info(id, message, data)\n\nAlias to `.log('info', id. message, data)`\n\n\n### .debug(id, message, data)\n\nAlias to `.log('debug', id. message, data)`\n\n\n### .log(level, id, message, data)\n\nEmits a `log` event, with an object like so:\n\n```js\nlogger.log('warn', 'foo', 'bar', { dog: 'loves cat' })\n{\n    level: 'warn',\n    id: 'foo',\n    message: 'bar',\n    data: {\n        dog: 'loves cat'\n    }\n}\n```\n\n\n### .prompt(prompts, callback)\n\nEmits a `prompt` event with an array of `prompts` with a `callback`.   \n`prompts` can be an object or an array of objects. The `callback` will be called with an\nthe answer or an object of answers (if prompts was only one or an array respectively).\nThe `callback` is guaranteed to run only once.\n\n```js\nlogger.on('prompt', function (prompts, callback) {\n    // \"prompts\" is always an array of prompts\n    // Call \"callback\" with an object of answers when done\n\n    // In this example, we will use the inquirer module to do the\n    // prompting for us\n    inquirer(prompts, callback);\n})\n\nlogger.prompt({\n    type: 'input'  // Can be 'input', 'confirm' or 'password'\n    message: 'Type something',\n    validate: function (value) {\n        if (value !== 'I am awesome') {\n            return 'You must type \"I am awesome\"'\n        }\n\n        return true;\n    }\n}, function (err, answer) {\n    // Error will only happen on unsupported 'type'\n    if (err) {\n        return console.error(err.message);\n    }\n\n    console.log(answer);\n});\n\n\n```\n\n\n### .pipe(logger)\n\nPipes all logger events to another logger.   \nBasically all events emitted with `.emit()` will get piped.\n\n\n### .geminate()\n\nCreates a new logger that pipes events to the parent logger.   \nAlias for `(new Logger()).pipe(logger)`.\n\n\n### .intercept(fn)\n\nIntercepts `log` events, calling `fn` before listeners of the instance.\n\n\n### #LEVELS\n\nA static property that contains an object where keys are the recognized log levels and values their importance.   \nThe higher the importance, the more important the level is.\n\n\n## License\n\nReleased under the [MIT License](http://www.opensource.org/licenses/mit-license.php).\n","maintainers":[{"email":"paul.irish@gmail.com","name":"paulirish"},{"email":"mat@wibbly.org.uk","name":"wibblymat"},{"email":"desandrocodes@gmail.com","name":"desandro"},{"email":"sheerun@sher.pl","name":"sheerun"},{"email":"andremiguelcruz@msn.com","name":"satazor"}],"time":{"modified":"2022-06-13T05:00:49.562Z","created":"2013-07-20T19:23:20.502Z","0.1.0-rc.1":"2013-07-20T19:23:23.673Z","0.1.0":"2013-07-27T21:29:36.774Z","0.2.0":"2013-08-18T23:44:36.225Z","0.2.1":"2013-08-19T23:53:51.120Z","0.2.2":"2014-01-14T13:50:04.780Z"},"author":{"name":"Twitter"},"repository":{"type":"git","url":"git://github.com/bower/logger.git"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/bower/logger/issues"},"users":{"itonyyo":true}}