@zxteam/logger
TypeScript icon, indicating that this package has built-in type declarations

6.0.63 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @zxteam/logger

Weekly Downloads

1

Version

6.0.63

License

MIT

Unpacked Size

18.5 kB

Total Files

5

Last publish

Collaborators

  • maxim.anurin
  • serhiizghama