How to use the log-symbols.warn function in log-symbols

To help you get started, we’ve selected a few log-symbols examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bentonam / fakeit / app / logger.js View on Github external
import to from 'to-js';
import chalk from 'chalk';
import symbols from 'log-symbols';
import perfy from 'perfy';
symbols.warn = symbols.warning;
symbols.ok = symbols.okay = symbols.success;
import ora from 'ora';
import formatSeconds from 'format-seconds';
import Emitter from 'events-async';


/// @name Logger
/// @description
/// This is the main logger for the application
export default class Logger extends Emitter {
  ///# @name constructor
  ///# @arg {object} options [{ log: true, verbose: false, timestamp: true }]
  constructor(options = {}) {
    super();
    this.setMaxListeners(50);
    this.options = to.extend({

log-symbols

Colored symbols for various log levels. Example: `✔︎ Success`

MIT
Latest version published 3 months ago

Package Health Score

85 / 100
Full package analysis