diff --git a/src/logging.js b/src/logging.js index 7cc5988cf24f186c557f6a7ac335a2cc351f5846..fd91d2b369df9442f4f4fb00a532577b18bfe2f5 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.