Skip to content
This repository was archived by the owner on Oct 24, 2019. It is now read-only.

Latest commit

 

History

History
32 lines (30 loc) · 740 Bytes

README.md

File metadata and controls

32 lines (30 loc) · 740 Bytes

backend-logger

Greenkeeper badge

class Logger

howto:

before using any of the method, u have to use the functions in is to set which module is used

e.g.:

const L = new (require('backend-logger'))().is.LOGGER();
L.log('some log', {foo: 'bar'})

methods

  • log(txt, ...data)
  • debug(txt, ...data)
  • error(txt, ...data)
  • logClean(...data)
  • errorClean(...data)

parameter

  • is: object getter
  • is.BACKEND: function()
  • is.API: function()
  • is.DATA: function()
  • is.PROXY: function()
  • is.TYPES: function()
  • is.UTIL: function()
  • is.CDN: function()
  • is.LOGGER: function()