@validide/logger

A Simple JavaScript logger.

Usage no npm install needed!

<script type="module">
  import validideLogger from 'https://cdn.skypack.dev/@validide/logger';
</script>

README

logger

A simple JavaScript logger

Status

Coverage Status npm version

Why another JavaScript library?

Before starting the project I looked fo a simple logger library that would allow me to:

  • Log to console in development mode.
  • Log to a remote endpoint in production.
  • Easily extend the location to store/report the logs via a custom ILogReporter.
  • The logger should not be directly dependent on the environment so depending on the configuration you could us it on client side on server side

Why this package name?

  1. I am not sure of the project's success so I did not want to spend that much time thinking of the name.
  2. This is my opinionated take on logging, someone might have a better/different view on how it should work.

Documentation and demo

Documentation

Demo