@io-arc/logger
console logging
Last updated 2 days ago by arcone .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @io-arc/logger 
SYNC missed versions from official npm registry.

@io-arc/logger

Console logging.

Usage

import { blue } from 'kleur'
import Logger from '@io-arc/logger'

Logger.message('Success !!!!', blue)

Methods

No New instance.
This class is static function.

Logger.message(message: string, color: Color): void

General purpose log.
color use the kluer.

Logger.start(task: string[, isBr: boolean = false]): void

Task started log.
isBr is optional whether to start a new line.
Default: false

Logger.completed(task: string[, isBr: boolean = false]): void

Task completed log in all green.
isBr is optional whether to start a new line.
Default: false

Logger.failed(task: string, error: Error | string | null[, isNotify: boolean = true]): void

Task error log. error is Error object or string or null.
isNotify is true, run Notify tools.

Current Tags

  • 0.2.5                                ...           latest (2 days ago)

10 Versions

  • 0.2.5                                ...           2 days ago
  • 0.2.4                                ...           2 days ago
  • 0.2.3                                ...           8 days ago
  • 0.2.2                                ...           15 days ago
  • 0.2.1                                ...           19 days ago
  • 0.2.0                                ...           20 days ago
  • 0.1.1                                ...           a month ago
  • 0.1.0                                ...           a month ago
  • 0.0.2                                ...           2 months ago
  • 0.0.1                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 27
Last Day 2
Last Week 18
Last Month 45
Dependencies (4)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |