1.0.0 • Published 5 years ago

log-type v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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.