Skip to content

Soterix/node.logger

Repository files navigation

ZXTeam's Logger

npm version badge downloads badge commit activity badge last commit badge twitter badge

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published