Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
seperator = '\n ';
debugString = "→ [" + entry.timestamp + "] [" + entry.file + ":" + entry.line + "] [" + entry.method + "]";
if (debugFormatter) {
debugString = debugFormatter(debugString);
}
result = "" + messageString + seperator + debugString + "\n";
} else {
result = messageString + '\n';
}
}
return result;
};
return Human;
})(require('caterpillar').Transform);
module.exports = {
Human: Human,
createHuman: function() {
var args;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
return (function(func, args, ctor) {
ctor.prototype = func.prototype;
var child = new ctor, result = func.apply(child, args);
return Object(result) === result ? result : child;
})(Human, args, function(){});
}
};
}).call(this);
if (message) {
message = JSON.stringify(message);
}
return next(null, message);
};
Filter.prototype.format = function(entry) {
if (entry.levelNumber > this.config.level) {
return null;
}
return entry;
};
return Filter;
})(require('caterpillar').Transform);
module.exports = {
Filter: Filter,
createFilter: function() {
var args;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
return (function(func, args, ctor) {
ctor.prototype = func.prototype;
var child = new ctor, result = func.apply(child, args);
return Object(result) === result ? result : child;
})(Filter, args, function(){});
}
};
seperator = '\n ';
debugString = "→ [" + entry.timestamp + "] [" + entry.file + ":" + entry.line + "] [" + entry.method + "]";
if (debugFormatter) {
debugString = debugFormatter(debugString);
}
result = "" + messageString + seperator + debugString + "\n";
} else {
result = messageString + '\n';
}
}
return result;
};
return Human;
})(require('caterpillar').Transform);
module.exports = {
Human: Human
};