hexalogger

1.1.3 • Public • Published

HexaLogger

A simple, smart logger.

Documentation

Setting it up

To install HexaLogger, run the command below in a command prompt open where you want your project to be. npm i hexalogger --save

Then, in your file, make sure you define HexaLogger. In this case, we're calling it 'log'

const log = require('hexalogger');

Usage

Currently, HexaLogger has three functions. Info, error and success.

For info, you do this.

log.info('Content here');

For error, you do this.

log.error('Content here');

For success, you do this.

log.success('Content here');

For warn, you do this.

log.warn('Content here');

And for ascii text, you do this.

log.ascii('Content here');

Full example

So now you have this.

const log = require('hexalogger');

log.info('Content here');
log.error('Content here');
log.success('Content here');
log.warn('Content here');
log.ascii('Content here');

Package Sidebar

Install

npm i hexalogger

Weekly Downloads

0

Version

1.1.3

License

MIT

Unpacked Size

1.89 kB

Total Files

3

Last publish

Collaborators

  • thehexabyte