{"_id":"cluster.exception","_rev":"6-825d08dcf3105d3915093fa16caa12c0","name":"cluster.exception","description":"Exception handling for cluster.js","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"cluster.exception","version":"0.0.1","description":"Exception handling for cluster.js","keywords":["cluster","mail","exception","error"],"author":{"name":"Arnout Kazemier","email":"info@3rd-Eden.com"},"dependencies":{"email":"0.2.x","jade":"0.10.x"},"main":"index","engines":{"node":"0.4.x"},"_id":"cluster.exception@0.0.1","_nodeSupported":false,"_npmVersion":"0.2.10","_nodeVersion":"v0.5.0-pre","dist":{"shasum":"89cc395451d65e941c166241beb0fa8e9d0f9295","tarball":"https://registry.npmjs.org/cluster.exception/-/cluster.exception-0.0.1.tgz","integrity":"sha512-1OjtnJHBJvhiHNMv2TTC7F5xQXTHD/0EGpXCx1FJIDfaiv5Iqc0JEjZjGkVEq8ZfiogAhTVxZFeqVSQmBz+X5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDviaEGSCGPTF329Hl9vrr6qzosd79z45LSH9V3LMWEXwIgO5ltW0iw2XoPWAk/iflwObSBijxkaiy8tZ7kHSLFq1U="}]},"deprecated":"NO"},"0.0.2":{"name":"cluster.exception","version":"0.0.2","description":"Exception handling for cluster.js","keywords":["cluster","mail","exception","error"],"author":{"name":"Arnout Kazemier","email":"info@3rd-Eden.com"},"dependencies":{"email":"0.2.x","jade":"0.10.x"},"devDependencies":{"expresso":"","should":"","cluster":""},"main":"index","respository":{"type":"git","url":"https://3rd-Eden@github.com/3rd-Eden/cluster.exception.git"},"_id":"cluster.exception@0.0.2","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.12","_nodeVersion":"v0.5.9","_defaultsLoaded":true,"dist":{"shasum":"71c4597c3ce731bf7fd4751e2a2546f4071c0982","tarball":"https://registry.npmjs.org/cluster.exception/-/cluster.exception-0.0.2.tgz","integrity":"sha512-J/+ievto6Y+jgcneak/nxCxYoLGqAgDgabqNPM13MkwcP414uink2hHZBvD0n+y7AMuyxGrdrEyJCOTNkmuzEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFscMFOHCMF78Ry+SmQozXQvHdpu3IV/tas9NaXfovgjAiEAnhPTTbANJaojSVC/FD4gRtvmrgfxzeMsGcq1KruH5zE="}]},"scripts":{},"maintainers":[{"name":"V1","email":"info@3rd-Eden.com"}],"deprecated":"NO"},"0.0.3":{"name":"cluster.exception","version":"0.0.3","description":"Exception handling for cluster.js","keywords":["cluster","mail","exception","error"],"author":{"name":"Arnout Kazemier","email":"info@3rd-Eden.com"},"dependencies":{"email":"0.2.x","jade":"0.10.x"},"devDependencies":{"expresso":"","should":"","cluster":""},"main":"index","respository":{"type":"git","url":"https://3rd-Eden@github.com/3rd-Eden/cluster.exception.git"},"_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"_id":"cluster.exception@0.0.3","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0","_nodeVersion":"v0.6.13","_defaultsLoaded":true,"dist":{"shasum":"c356d0c709510997729291858a5edd7dcb766fef","tarball":"https://registry.npmjs.org/cluster.exception/-/cluster.exception-0.0.3.tgz","integrity":"sha512-Ppsxa5s7ng+Kjx7HpcBQhqFikJqdePvBMfbqdjgBCz2JlBx99/dvgiXBPoWB0PZ+KSWQEWqNn6TA25XqoqzB0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7hlfq+To9t4eiiyulxaZJtpsOCZHB8tOxL6vshYk4ygIhAJONMA21QCiO4I3f1aQHBBLnGPIrHDWwFtQ0WoUImxer"}]},"maintainers":[{"name":"V1","email":"info@3rd-Eden.com"}],"deprecated":"NO"}},"maintainers":[{"name":"V1","email":"info@3rd-Eden.com"}],"time":{"modified":"2022-06-13T06:17:49.263Z","created":"2011-04-11T19:44:57.263Z","0.0.1":"2011-04-11T19:44:57.681Z","0.0.2":"2011-10-22T08:06:52.391Z","0.0.3":"2012-04-04T07:11:58.155Z"},"author":{"name":"Arnout Kazemier","email":"info@3rd-Eden.com"},"readme":"# cluster.exception\n\nException notification plugin for Cluster\n\n## Installation\n\nThe easiest way to install the module is through the node package manager (npm).\n\n    > npm install cluster.exception\n\nOr you could clone this github repository and point your require statement to that.\n\n    > git clone git://github.com/3rd-Eden/cluster.exception.git\n\n## Usage\n\nOptions:\n\n-   `from` sender email address. _Optional, should be a string. Defaults to cluster@dev.null._\n-   `to` receiving email addresses. _Required, a array or string._\n-   `subject` email subject. _Optional, string, can contain optional template tags. Defaults to Cluster.exception {date}._\n-   `methods` console.* methods that need to be monitored. _Optional, array. Defaults to ['log','info','warn','error']._\n-   `template` verbosity of the email content. _Optional, string. Defaults to default. Can either be default, basic or history._\n-   `history` options for the History metrics module. _Optional, object._\n    -   `limit` The amount samples it should store internally. _Optional, number. Defaults to 50._\n    -   `duration` The interval of the snapshots. _Optional, number in ms. Defaults to 25 seconds (25000 ms)._\n\n## Example\n\n``` js\nvar http = require('http')\n  , cluster = require('cluster')\n  , exception = require('../');\n\nvar app = http.createServer(function httpServer(req, res){\n  res.writeHead(200);\n  res.end(\"hello world\");\n  if(req.url.match('favicon')){\n    console.info('Im a console.info');\n    console.warn('Im a console.warn');\n    console.log('Im a console.log');\n    console.error('Im a console.error');\n    console.info(req);\n\n    throw new Error(\"Omfg, uncaught error\");\n  }\n});\n\ncluster = cluster(app)\n  .use(cluster.stats())\n  .use(cluster.pidfiles('pids'))\n  .use(cluster.cli())\n  .use(cluster.repl(8888))\n  .use(exception({to: 'your-email@ddress.here'}))\n  .listen(8080);\n```\n\nOr check the [examples](https://github.com/3rd-Eden/cluster.exception/tree/master/examples) folder for more examples.\n\n## Templates\n\n-   `basic` This includes the **Stracktrace** and **Cluster instance** information.\n-   `history` This includes the **Stracktrace**, **Cluster instance**, **Log snapshot** and **graphs**.\n-   `default` This includes.. Everything you see in the screenshot below, you can never have to much information.\n\n## Screenshots\n\n![](http://dl.dropbox.com/u/1381492/shots/screeny-github-cluster-exception.png)\n\n## Roadmap\n\nThe initial release will only contain support for email notifications. In the next iteration there will be support for multiple backends available. There are some use cases where you would want to store the details of the exception + the context in a database or somewhere else. So a configurable backend is something that would make a fine addition to the plugin.\n\nOnce this has been realized, I will rip out the `History` module and create a new `node-metrics` module from it, so it will be completely customizable and reusable with only the metrics that you think are important. If you have application that does allot database queries, it might be useful to know see if the queries per second where increasing, or that it took to long for your database server to respond. The possibilities are endless.\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2011 Arnout Kazemier &lt;info@3rd-Eden.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","readmeFilename":"","keywords":["cluster","mail","exception","error"]}