log-filejs

A logger for just about everything.

Usage no npm install needed!

<script type="module">
  import logFilejs from 'https://cdn.skypack.dev/log-filejs';
</script>

README

log-filejs

A logger for just about everything.

NPMNPMNPMNPM

NPM

Install

$ npm i log-filejs --save

Usage

const logFile = require('log-filejs')

logFile.info('Hello again distributed logs')
// - Write to all logs with level `info` and below to `combined.log` 

logFile.error('error 404 not found')
// - Write all logs error (and below) to `error.log`