0.0.2 • Published 6 years ago

revilossor-logger v0.0.2

Weekly downloads
10
License
SEE LICENCE IN LI...
Repository
github
Last release
6 years ago

Revilossor-logger

This is just a simple javascript logger

Use it like this:

  const timestamps = true // add a timestamp to logs from this instance
  const prepend = '[ExampleLog]' // prepend all logs from this logger instance with this
  const delimiter = ' -- ' // delimit all arguments to the logger instance with this

  const log = require('revilossor-logger')(timestamps, prepend, delimiter) // get an instance

  log('the answer is', 42, '¯\_(ツ)_/¯')
  // [UTC time] -- [ExampleLog] -- the answer is -- 42 -- ¯\_(ツ)_/¯

You'll need LOGGING=true in your environment too!