A logger has 6 different levels of logging:
fatal, error, info, debug, trace, warn.
npm i @zxteam/logger
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