Skip to content

hparcells/log-type

Repository files navigation

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.

About

📃 A simple logger for different types of log messages.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published