logify-console

console.log() etc replacement with timestamp, loglevel and module output

Usage no npm install needed!

<script type="module">
  import logifyConsole from 'https://cdn.skypack.dev/logify-console';
</script>

README

logify-console

console.log() etc replacement with timestamp, loglevel and module output

Installation

npm install logify-console --save

Usage


var console = require('logify-console')(module.id);

console.log('A Test');	//: 2016-02-19T21:45:58.302Z [DEBUG] index.js - A Test

console.info('An event');	//: 2016-02-19T21:45:58.502Z [INFO] index.js - An event