<reponame>Kenzquerza/UPIN-BOTZMd-sc<filename>node_modules/cfonts/lib/Log.js<gh_stars>0/***************************************************************************************************************************************************************
 *
 * cfonts
 *
 * Sexy fonts for the console. (CLI output)
 *
 * @license     https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE  GNU GPLv2
 * @author      Dominik Wilkowski  kenaa@example.com
 * @repository  https://github.com/dominikwilkowski/cfonts
 *
 * Log
 *   Logging prettiness
 *
 **************************************************************************************************************************************************************/
'use strict';

const {
  Chalk
} = require('./Chalk.js');
/**
 * Logging prettiness
 *
 * @type {object}
 */


const Log = {
  /**
   * Print error message to console.
   *
   * @param  {string} text - The sting you want to log
   */
  error: text => {
    text = text.replace(/(?:\r\n|\r|\n)/g, '\n       '); // indent each line

    console.error(`\n ${Chalk.bold.red('Ouch:')} ${text}\n`);
  }
};
module.exports = exports = {
  Log
};