Skip to content
Browse files

Fixed misc bugs

  • Loading branch information...
1 parent 180415f commit 93228116bacf26d3aafa8fb3ba6a95ba95d4d0f9 @ditesh committed
Showing with 4 additions and 4 deletions.
  1. +2 −2 main.js
  2. +2 −2 test.js
View
4 main.js
@@ -97,7 +97,7 @@ simplelogger.prototype.log = function(msg, cb) {
this.stdout(msg);
if (this.autolog.stderr)
- this.stdout(msg);
+ this.stderr(msg);
if (this.autolog.syslog)
this.syslog(msg);
@@ -144,7 +144,7 @@ simplelogger.prototype.debug = function(msg, cb) {
if (this.enabled.debug === false)
return this;
- msg = "dEBUG: " + msg;
+ msg = "DEBUG: " + msg;
this.filelog(this.filenames.debuglog, msg, cb);
return this;
View
4 test.js
@@ -3,14 +3,14 @@ var simplelogger = require("./main.js").simplelogger;
var logfile= "/var/log/messages";
var logger = new simplelogger({
filenames: {
- "default": "default.log",
+ default: "default.log",
debuglog: "debug.log",
infolog: "info.log",
warnlog: "warn.log",
errorlog: "error.log",
},
- enable: ["default", "error", "warn", "info", "syslog", "stdout", "stderr"],
+ enable: ["default", "error", "warn", "info", "debug", "syslog", "stdout", "stderr"],
autolog: ["default", "stdout", "stderr", "syslog"],

0 comments on commit 9322811

Please sign in to comment.
Something went wrong with that request. Please try again.