@chimidev/local-logger

Mirror of a logging module, just for local usage

Usage no npm install needed!

<script type="module">
  import chimidevLocalLogger from 'https://cdn.skypack.dev/@chimidev/local-logger';
</script>

README

Local Logger

This module represents an simple human readable logger API with log level like the bunyan logger. Following methods are available:

  • trace
  • debug
  • info
  • warn
  • error
  • fatal

If the log level for example is set to error, it will not show any log messages below on runtime. You can either create an instance with Logger.createLogger(options) or you can simply use the logger after import without this method, This module will create an instance on import.