extracting base class for tests, adding readEvent tests, fixing typed error in related operations, adding a file logger

This commit is contained in:
Nicolas Dextraze
2016-03-13 18:38:42 -07:00
parent 0b63df85e7
commit d1b9d6958b
11 changed files with 540 additions and 259 deletions

View File

@ -13,7 +13,7 @@ function FileLogger(filePath, append) {
function createLine(level, args, argsStartIndex) {
var msg = util.format.apply(util, Array.prototype.slice.call(args, argsStartIndex));
return util.format('%s %s - %s%s', new Date().toISOString(), level, msg, os.EOL);
return util.format('%s %s - %s%s', new Date().toISOString().substr(11,12), level, msg, os.EOL);
}
FileLogger.prototype.debug = function() {