<commit_before>const chalk = require('chalk');

/**
 * The SharpBot logger
 * 
 * @class Logger
 */
class Logger {
    /**
     * Creates an instance of Logger.
     * @param {SharpBot} bot 
     * 
     * @memberOf Logger
     */
    constructor(bot) {
        this.bot = bot;
    }

    _log(prefix, message) {
        console.log(`${prefix} ${message}`);
    }

    info(message) {
        this._log(chalk.green('\u2713'), message);
    }

    warn(message) {
        this._log(chalk.yellow('!'), message);
    }

    severe(message) {
        this._log(chalk.red('!'), message);
    }
}

module.exports = Logger;<commit_msg>Added ability for logger.warn and logger.severe to print an error to the console.<commit_after>const chalk = require('chalk');

/**
 * The SharpBot logger
 * 
 * @class Logger
 */
class Logger {
    /**
     * Creates an instance of Logger.
     * @param {SharpBot} bot 
     * 
     * @memberOf Logger
     */
    constructor(bot) {
        this.bot = bot;
    }

    _log(prefix, message) {
        console.log(`${prefix} ${message}`);
    }

    info(message) {
        this._log(chalk.green('\u2713'), message);
    }

    warn(message, error) {
        this._log(chalk.yellow('!'), message);
        error && console.error(error);
    }

    severe(message, error) {
        this._log(chalk.red('!'), message);
        error && console.error(error);
    }
}

module.exports = Logger;
{'fraction_non_alphanumeric': 0.1617231638418079, 'fraction_numerical': 0.005649717514124294, 'mean_word_length': 2.2058823529411766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2062027', 'n_tokens_mistral': 476, 'n_tokens_neox': 451, 'n_words': 93}