1.0.0 • Published 8 years ago

crimson v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

Crimson

Usage

const Crimson = require('crimson');
const crimson = new Crimson({
    debug: true, 
    path: path.join(__dirname, 'logs'),
    keep: true,
    prefix: ''
});

All options are optional, and not required.

Crimson.debug

default: true Specifies whether crimson.debug() will show log in console

Crimson.path

default: path.join(__dirname, 'logs') Specifies the path to where the log files are kept.

Crimson.keep

default: true Specifies whether to save the log to a file

Crimson.prefix

default: '' Adds a prefix to every log line

Functions

crimson.log(); // plain
crimson.success(); // green
crimson.error(); // red
crimson.info(); // blue
crimson.warn(); // yellow
crimson.fatal(); // red + throw