log-type
v1.0.0
Published
A simple logger for different types of log messages.
Downloads
6
Maintainers
Readme
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:
;
When using the log()
function, the color parameter takes a color string from the choices from Chalk Colors.