hexo-log
v4.1.0
Published
Logger for Hexo
Downloads
127,743
Readme
hexo-log
Logger for Hexo.
Installation
$ npm install hexo-log --save
Usage
// v3.x.x
const log = require('hexo-log')({
debug: false,
silent: false
});
log.info('Hello world');
// v4.x.x
const log = require('hexo-log').default({
debug: false,
silent: false
});
log.info('Hello world');
// v4.x.x (ES Module)
import { logger } from 'hexo-log';
const log = logger({
debug: false,
silent: false
});
log.info('Hello world');
Option | Description | Default
--- | --- | ---
debug
| Display debug message. | false
silent
| Don't display any message in console. | false
License
MIT