ntts
Version:
A CLI tool for refactoring an existing NodeJs application to a fully functional TypeScript application.
23 lines (17 loc) • 470 B
text/typescript
import { green, yellow, redBright } from 'chalk';
/* eslint no-console: "off" */
class Logger {
static success = (text: string) => {
console.log(green('SUCCESS'), text);
};
static info = (text: string) => {
console.log('INFO', text);
};
static warn = (text: string) => {
console.log(yellow('WARN'), text);
};
static error = (text: string) => {
console.log(redBright('ERROR'), text);
};
}
export default Logger;