vascomm_logs

1.0.0 • Public • Published

Vascomm Logs Format for API

  • Comprehensive tests
  • No dependencies (except the unicode table)
npm install git+https://oauth2:owsA9Y__cRZ62GzHKTPJ@gitlab.vascomm.co.id/backend/Vascomm_Module/log.git

example

var log = require('vascomm_logs')

// Success
log.info('', { ip: ip_address, endpoint: endpoint , date : moment().format(), params : json, results : JSON.stringify(response) });

// Error
log.error('', { ip: ip_address, endpoint: endpoint , date : moment().format(), params : json, results : JSON.stringify(response) });

options

Readme

Keywords

Package Sidebar

Install

npm i vascomm_logs

Weekly Downloads

19

Version

1.0.0

License

MIT

Unpacked Size

4.11 kB

Total Files

3

Last publish

Collaborators

  • vascomm