mirror of https://github.com/jkjoy/sunpeiwen.git
9a9cb42f53 | ||
---|---|---|
.. | ||
lib | ||
node_modules | ||
.eslintignore | ||
.eslintrc | ||
.jscsrc | ||
.npmignore | ||
LICENSE | ||
README.md | ||
package.json |
README.md
hexo-log
Logger for Hexo, based on bunyan with better console output.
Installation
$ npm install hexo-log --save
Usage
var log = require('hexo-log')({
debug: false,
silent: false
});
log.info('Hello world');
Option | Description | Default |
---|---|---|
debug |
Display debug message and save log to debug.log file. |
false |
silent |
Don't display message in console. | false |
name |
Name | hexo |
License
MIT