log-type

A simple logger for different types of log messages.


Keywords
log, logging, color, colour, terminal, console, nodejs, npm
License
MIT
Install
npm install log-type@1.0.0

Documentation

log-type

A simple logger for different types of log messages.

Usage

import { log, server, game, error, warn, debug } from 'log-type';

log('[Prefix]', 'red', 'Log Message');
server('Log message.');
game('Log message.');
error('Log message.');
warn('Log message.');
debug('Log message.');

Outputs:

output;

When using the log() function, the color parameter takes a color string from the choices from Chalk Colors.