Permalink
Browse files

some cleanup

  • Loading branch information...
1 parent d25ebaa commit b2eba32c95affe6b068a54b5a956f6bd0be7bb52 @thrashaholic committed Apr 20, 2011
Showing with 7 additions and 25 deletions.
  1. +3 −1 Readme
  2. +4 −24 spine.js
View
4 Readme
@@ -1 +1,3 @@
-spine is a highly dynamic logging, tracing, and monitoring library for node.js.
+spine is a highly dynamic logging, tracing, and monitoring library for node.js.
+it is based on, and borrows code from https://github.com/lorenwest/node-monitor.git
+dependent upon https://github.com/thrashaholic/ripple (ripple config)
View
@@ -23,21 +23,21 @@ var nerves = {};
* This function returns an object that monitors a nerve ending. Example:
*
* // Set up nerves for this spine
-* var nerve = require('spine')(config.inject('monitor'));
+* var nerve = require('spine')(config.inject('name'));
*
* Then when you want to record an event, call nerve.event()
*
* // Record the time it took to call the API
* var startTime = new Date();
* ...
-* monitor.event('ApiTime, ms', startTime);
+* spine.event('ApiTime, ms', startTime);
*
-* This adds and logs an event to the monitor called "ApiTime, ms" for your
+* This adds and logs an event to the nerve called "ApiTime, ms" for your
* nerve.
*
* Input:
* nerveName - Name of your nerve
-* configs - A dictionary of monitor configurations for this nerve
+* configs - A dictionary of nerve configurations for this nerve
* key: monitorName, or 'default' for the nerve level defaults
* value: A configuration object for the monitor, possibly including:
* enabled - (boolean) Should the monitor be enabled? (default: true)
@@ -149,23 +149,3 @@ spine.exitReport = function() {
sys.puts(" node.js monitor");
};
-/* MODIFIED BY GBEAN
-* I do not want monitor to call process.exit, ever.
-*/
-/*****************************************************************************
-* gracefulExit
-******************************************************************************
-* This performs a graceful exit by allowing other SIGINT and SIGTERM hooks
-* to process, then exiting causing the exit report to be generated.
-*/
-/*spine.gracefulExit = function() {
- // Schedule a graceful exit
- process.nextTick(function(){process.exit(0);});
-};
-
-// Hook process events
-process.on('SIGINT', spine.gracefulExit);
-process.on('SIGTERM', spine.gracefulExit);
-*/
-//process.on('exit', spine.exitReport);
-

0 comments on commit b2eba32

Please sign in to comment.