Browse Source

Added Log.raw function to just log an object

shorten
benji7425 4 years ago
parent
commit
9b370d398d
  1. 7
      log.js

7
log.js

@ -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);
}
};
Loading…
Cancel
Save