Added Log.raw function to just log an object

This commit is contained in:
benji7425 2017-01-22 18:07:35 +00:00
parent 3842f96be3
commit 9b370d398d
1 changed files with 7 additions and 0 deletions

7
log.js
View File

@ -20,6 +20,10 @@ function log(message) {
}
}
function logRaw(obj) {
Console.log(obj);
}
module.exports = {
info: function (message) {
if (message)
@ -36,5 +40,8 @@ module.exports = {
//log the message, attach innerEx information if it was passed
log("[ERROR] " + message + (innerEx ? ". Inner exception details: " + (innerEx.message || innerEx) : ""));
}
},
raw: function (obj) {
if (obj) logRaw(obj);
}
};