Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1017 Bytes

README.md

File metadata and controls

49 lines (37 loc) · 1017 Bytes

hexo-log

CI NPM version Coverage Status

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