fragjs-logger
fragjs-logger =============
Last updated 3 years ago by poying .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install fragjs-logger 
SYNC missed versions from official npm registry.

fragjs-logger

var wiat = require('co-wait');
var logger = require('./logger');

logger.log('message');

var h = logger.start('step !');
yield wait(1000);
h.message = '~~~';
yield wait(2000);
h.success();

API

  • logger.start(message)
    • return: Handler
  • logger.log(message)
  • logger.enableColor()
  • logger.disableColor()
  • Handler#wait(yieldable)
  • Handler#success()
  • Handler#error(error)
  • Handler#warn([message])
  • Handler.message

License

(The MIT License)

Copyright (c) 2014 Po-Ying Chen <poying.me@gmail.com>.

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |