@bizvu/logger

Uniform logging with winston

Usage no npm install needed!

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

README

Logger

Uniform logging with Winston

Install

npm i @bizvu/logger

Usage

const logger = require('@bizvu/logger')(__filename)
logger.error(string)
logger.warn(string)
logger.info(string)
logger.http(string)
logger.verbose(string)
logger.debug(string)
logger.silly(string)

Configuration

Default log level is 'info'. To change the log level, set an environment variable LOG_LEVEL with the desired level of logging.