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
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) });