0.3.5 • Published 3 years ago

@a11ywatch/log v0.3.5

Weekly downloads
923
License
MIT
Repository
-
Last release
3 years ago

@a11ywatch/log

log reports to a11ywatch logger service

Installation

npm i @a11ywatch/log

const { log, setConfig } = require("@a11ywatch/log");

setConfig({ container: "api" });
// out -> { container } logged in each request

log("saved something to db", {
  type: "info",
  container: "api",
  platform: "chrome"
});

Configure logger endpoint

set the env variable LOGGER_URL to the logger service.

Disable log stream

set the env variable LOGGER_ENABLED to false. This will perform logs on the host console instead of logger service.

Enable/disable verbose log outputs

set the env variable LOGGER_VERBOSE to true

0.3.5

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.1

3 years ago

0.1.2

3 years ago

0.2.0

3 years ago

0.2.7

3 years ago

0.1.8

3 years ago

0.2.6

3 years ago

0.1.7

3 years ago

0.2.3

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.2.5

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago