Package detail

datalog

mbunity185MIT2.1.1

A simple logging library with color and with a timestamp.

logging, log, logger, simple logger

readme

DataLog

A simple logging library with color and with a timestamp.

npm version Downloads

Installation

yarn add datalog

Usage

Here are some examples app.js:

const log = require('datalog');

log.info('Some info messages');
log.warn('Some warn messages');
log.trace('Some trace messages');
log.debug('Some debug messages');
log.error('Some error messages');
log.fatal('Some fatal messages');

You will see output like this:

app.js

If you use Docker, set tty parameter true

LICENSE

MIT, see the source.