Quantum based logger for Carbon proxy.
Logging middleware for Carbon proxy/balancer.
Carbon is middleware based proxy for table or cluster/balanced based routing. It features zero-downtime restart, websocket support, and custom middleware. You can learn more about it at qualiancy/carbon.
Quantum is a transport-agnostic event based JSON logging framework. It supports multiple transports per logger and comes bundled with multi-themed console logging and JSON file support. It has many other transports available such as database support or network transports for multiple service log aggregation. You can learn more about it at qualiancy/quantum.
To get started, create a new carbon proxy and mount the logging middleware before you mount your other carbon middleware, such as a balancer.
var carbon = require'carbon'proxy = carbonlisten8080carbonLogger = require'carbon-logger';logger = carbonLogger'my-app';loggerusecarbonLoggerconsole theme: 'simple'usecarbonLoggerwriteFile__dirname + '/logs'start;proxyuseloggermiddleware;usecarbonbalancer__dirname + '/app.js'workers: 4watch: truehost: 'myapp.com'middleware;
$ make test
Interested in contributing? Fork to get started. Contact @logicalparadox if you are interested in being regular contributor.
(The MIT License)
Copyright (c) 2012 Jake Luer firstname.lastname@example.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.