convert level string to Level

This commit is contained in:
Gareth Jones 2013-08-21 08:05:28 +10:00
parent eb875b6d98
commit a0d0373480

View File

@ -1,5 +1,6 @@
"use strict";
var debug = require('./debug')('logger')
, levels = require('./levels')
, util = require('util');
module.exports = function Logger(dispatch, category) {
@ -44,6 +45,6 @@ function LoggingEvent (category, level, data) {
this.startTime = new Date();
this.category = category;
this.data = data;
this.level = level;
this.level = levels.toLevel(level);
}