From bc32727f2e2d2ee67f3c5935310b427fd1b1cb4b Mon Sep 17 00:00:00 2001 From: Rishabh Chawla Date: Sat, 12 Jan 2019 19:42:42 +0530 Subject: [PATCH] feat(log): few changes --- bin/log.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/log.js b/bin/log.js index ae1795c1639..fbdfa048d8f 100644 --- a/bin/log.js +++ b/bin/log.js @@ -24,11 +24,10 @@ const colors = { BgWhite: "\x1b[47m", }; -class logger { +class Logger { constructor(title) { - this.title; + this.title = title; process.stdout.write(`${colors.Bright}${title} - ${colors.FgCyan}webpack-cli ${colors.Reset}\n`); - return; } log(message) { @@ -100,4 +99,4 @@ class logger { } } } -module.exports = logger; +module.exports = Logger;