lib/logger.js
function log(...messages) {
  const { message, styles } = new Message({ ansi: ['', ''], css: '' }).addMessages(messages);

  console.log(message, ...styles);
}
function log(...messages) {
  const { message, styles } = new Message({ ansi: ['', ''], css: '' }).addMessages(messages);

  console.log(message, ...styles);
}
function log ( ... messages ) { const { message , styles } = new Message ( { ansi : [ '' , '' ] , css : '' } ) . addMessages ( messages ) ; console . log ( message , ... styles ) ; }
Log colorful messages out to the console on Node.js as well as in a browser in the simplest and most composable way.

@memberof module:logger
@function log
@param {...(string | number | module:logger.Message)} messages - messages to log
@example
import {log, consoleStyles} from 'webcompiler';
// or - import {log, consoleStyles} from 'webcompiler/lib/logger';
// or - var webcompiler = require('webcompiler');
//      var log = webcompiler.log;
//      var consoleStyles = webcompiler.consoleStyles;
// or - var logger = require('webcompiler/lib/logger');
//      var log = logger.log;
//      var consoleStyles = logger.consoleStyles;

const {red, green, blue, bold, underline} = consoleStyles;

log('Colorful ', bold(red('R'), green('G'), blue('B')), ' logs are ', underline('very'), ' easy!');
Log colorful messages out to the console on Node . js as well as in a browser in the simplest and most composable way .