replaced my debug lib with standard one

This commit is contained in:
Gareth Jones
2013-08-25 11:55:26 +10:00
parent 5a2771cfed
commit 50074842ad
9 changed files with 31 additions and 112 deletions

View File

@@ -1,7 +1,6 @@
"use strict";
var debug = require('./debug')('logger')
, levels = require('./levels')
, util = require('util');
var debug = require('debug')('log4js:logger')
, levels = require('./levels');
module.exports = function Logger(dispatch, category) {
if (typeof dispatch !== 'function') {
@@ -16,7 +15,7 @@ module.exports = function Logger(dispatch, category) {
var args = Array.prototype.slice.call(arguments)
, logLevel = args.shift()
, loggingEvent = new LoggingEvent(category, logLevel, args);
debug("Logging event " + loggingEvent + " to dispatch = " + util.inspect(dispatch));
debug("Logging event ", loggingEvent, " to dispatch = ", dispatch);
dispatch(loggingEvent);
}