1.6.0 • Published 1 year ago

@nosytools/logger-web v1.6.0

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
1 year ago

Nosy Logger for web

Usage

Firstly, initialize logger once. Make sure you do it on client side (where there is an access to window).

import { init } from "@nosytools/logger-web";

init({ apiKey: "your api key" });

After that, you may simply use it anywhere you need. You may use either use log message with specified Level or use on of level scoped methods - debug, info, warning, error.

import { log, debug } from "@nosytools/logger-web";

const onButtonClicked = () => {
  log("my button clicked", "debug");

  // or the short form

  debug("my button clicked");
};

When using log, you may use one of the log levels: debug, info, warn or error.

1.6.0

1 year ago

1.5.0

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.2.1

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago