@1blckhrt_/tslogger
v1.3.0
Published
A simple TypeScript logger to log messages to the console in specific colors.
Downloads
8
Maintainers
Readme
npm install @1blckhrt_/tslogger
const { logger } = require("@1blckhrt_/tslogger");
import { logger } from "@1blckhrt_/tslogger";
logger.setLogFile("log.txt"); // setting the file to log to
logger.saveToFile("Hello World!"); // saving the message
logger.red("This is a red message");
logger.yellow("This is a yellow message");
logger.green("This is a green message");
logger.cyan("This is a cyan message");
logger.blue("This is a blue message");
logger.magenta("This is a magenta message");
logger.error("This is an error message");
logger.warning("This is a warning message");
logger.info("This is an info message");
logger.success("This is a success message");