1.0.1 • Published 4 years ago
slayercio-logger v1.0.1
Slayercio Logger
Simple zero-dependent logger for use in JavaScript / TypeScript projects.
Error and Critical methods provide stack tree logging.
Usage
Import lib
//JavaScript const { Logger, LogType } = require("slayercio-logger"); //TypeScript import { Logger, LogType } from "slayercio-logger";
Simple Log
Logger.Log(msg: string, type: LogType); // or Logger.L(msg: string, type: LogType);
Debug
Logger.Debug(msg: string); // or Logger.D(msg: string);
- Error
Logger.Error(msg: string); // or Logger.E(msg: string);
- Critical Error
Logger.Critical(msg: string); // or Logger.C(msg: string);