@ztax/logger

0.2.3 • Public • Published

@ztax/logger

in the root of a typescript project:

pnpm add @ztax/logger
pnpm install-snippets

in a file you want to use logger

// type logsetup to use the snippet
// which will add

const { WARN, LOG, DEBUG, VERBOSE, ERROR } = Logger.setup(Logger.INFO); // eslint-disable-line no-unused-vars

Logger needs to be imported ( // TODO needs to happen automagically with the snippet or at least with autoimport libs)

import { Logger } from "@ztax/logger/src";

Change the verbosity in the setup line

const { WARN, LOG, DEBUG, VERBOSE, ERROR } = Logger.setup(Logger.DEBUG); // eslint-disable-line no-unused-vars

Readme

Keywords

none

Package Sidebar

Install

npm i @ztax/logger

Weekly Downloads

3

Version

0.2.3

License

ISC

Unpacked Size

20.1 kB

Total Files

13

Last publish

Collaborators

  • tennox
  • ztax