cri

crimson

Simple Logging with Style and Log to File functionality

Showing:

Popularity

Downloads/wk

2

Maintenance

No Maintenance Data Available

Package

Dependencies

2

Size (min+gzip)

75.5KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100