Skip to content

hexojs/hexo-log

Repository files navigation

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