From 9b370d398df4fd0e7208effa36dfd07771ec58f8 Mon Sep 17 00:00:00 2001 From: benji7425 Date: Sun, 22 Jan 2017 18:07:35 +0000 Subject: [PATCH] Added Log.raw function to just log an object --- log.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/log.js b/log.js index 46f1c05..ddf5f0f 100644 --- a/log.js +++ b/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); } }; \ No newline at end of file