moonstick-module-logger

moonstick-module-logger =======================

Usage no npm install needed!

<script type="module">
  import moonstickModuleLogger from 'https://cdn.skypack.dev/moonstick-module-logger';
</script>

README

moonstick-module-logger

Basic usage

var logger = require('logger')();

logger.error('error title', {
  any: 'payload you see fit'
}

Available commands

logger.verbose()
logger.info()
logger.warn()
logger.error()

logging options

By default the logger will log to logstash and the console, these can be configured thus

var logger = require('logger')({
  console: false,
  loggerLogstash: false
});