replaced my debug lib with standard one
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user