ZXTeam's Logger
A logger has 6 different levels of logging:
fatal, error, info, debug, trace, warn.
Install
npm i @zxteam/logger
Examples (TypeScript)
import { Logger } from "@zxteam/contract";
import { logger } from "@zxteam/logger";
const logOn: Logger = logger.getLogger("online");
const logOff: Logger = logger.getLogger("offline");
logOn.info("Message info"); // 23:09:28 INFO online Message info
logOff.error("Message error"); // 23:09:29 ERROR offline Message error