You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
777 B
33 lines
777 B
# hexo-log |
|
|
|
[![Build Status](https://github.com/hexojs/hexo-log/workflows/Tester/badge.svg?branch=master)](https://github.com/hexojs/hexo-log/actions?query=workflow%3ATester) |
|
[![NPM version](https://badge.fury.io/js/hexo-log.svg)](https://www.npmjs.com/package/hexo-log) |
|
[![Coverage Status](https://coveralls.io/repos/hexojs/hexo-log/badge.svg?branch=master)](https://coveralls.io/r/hexojs/hexo-log?branch=master) |
|
|
|
Logger for Hexo. |
|
|
|
## Installation |
|
|
|
``` bash |
|
$ npm install hexo-log --save |
|
``` |
|
|
|
## Usage |
|
|
|
``` js |
|
const log = require('hexo-log')({ |
|
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
|
|
|