From d7efeb7b16321c00c962b8551b8cfcfba01244c3 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Sat, 22 Oct 2022 14:32:32 -0600 Subject: [PATCH] start actual logging --- bot.js | 4 ++++ src/util/log/log.js | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bot.js b/bot.js index e69de29..46ad075 100644 --- a/bot.js +++ b/bot.js @@ -0,0 +1,4 @@ +const logger = require('./src/util/log/log'); +const client = {test: 'e', config: {logLevel: 1}}; +const log = logger(client); +log(); \ No newline at end of file diff --git a/src/util/log/log.js b/src/util/log/log.js index 7ab5613..b13195d 100644 --- a/src/util/log/log.js +++ b/src/util/log/log.js @@ -1,5 +1,5 @@ +const getLevel = require('./getlevel'); - -module.exports = (message, level, source, color) => { - +module.exports = client => (message, level, source, color) => { + }; \ No newline at end of file