Skip to content

Loading…

.debug method added #4

Merged
merged 1 commit into from

2 participants

@paulbellamy

While trying to use ain with socket.io it was complaining there was no 'debug' method on the logger. So I added one as a mirror of the error method.

@akaspin akaspin merged commit 0189b1d into akaspin:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 18, 2011
  1. @paulbellamy

    Adding a .debug method

    paulbellamy committed
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 0 deletions.
  1. +6 −0 index.js
View
6 index.js
@@ -190,6 +190,12 @@ SysLogger.prototype.warn = function() {
SysLogger.prototype.error = function() {
this._send(format.apply(this, arguments), Severity.err);
};
+/**
+ * Send log message with debug severity.
+ */
+SysLogger.prototype.debug = function() {
+ this._send(format.apply(this, arguments), Severity.debug);
+};
/**
* Log object with `util.inspect` with notice severity
Something went wrong with that request. Please try again.