From d3f255781b14b81fba558e423d596dfae1861adc Mon Sep 17 00:00:00 2001 From: Brandon Rodriguez <brodriguez8774@gmail.com> Date: Wed, 5 Aug 2020 18:43:24 -0400 Subject: [PATCH] Minorly improve console logging output --- src/logging.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/logging.js b/src/logging.js index 7cc5988..fd91d2b 100644 --- a/src/logging.js +++ b/src/logging.js @@ -51,7 +51,7 @@ const { getCurrentDate } = require('./helper_functions.js'); // Handling for INFO level. // Generate and print Console text. - prefix = ` ${chalk.blue('[INFO]')} [${relativeFileName} ${callee.getLineNumber()}] `; + prefix = ` ${chalk.blue('[INFO]')} [${relativeFileName} ${callee.getLineNumber()}] `; console_string = prefix.concat(firstArgument, ...otherArguments); originalLoggingMethod(console_string); @@ -64,7 +64,7 @@ const { getCurrentDate } = require('./helper_functions.js'); // Handling for WARNING level. // Generate and print Console text. - prefix = ` ${chalk.yellow('[WARN]')} [${relativeFileName} ${callee.getLineNumber()}] `; + prefix = ` ${chalk.yellow('[WARN]')} [${relativeFileName} ${callee.getLineNumber()}] `; console_string = prefix.concat(firstArgument, ...otherArguments); originalLoggingMethod(console_string); @@ -170,6 +170,8 @@ function logToFile(log_string, level) { } } +console.debug('Logging has been initialized.'); + /** * Simple test to make sure all loging levels work as expected. -- GitLab