@escale/escaleos-logs
v1.4.0
Published
Send logs from EscaleOs to Datadog
Downloads
4
Readme
escaleos-logs
Send logs to Datadog
Usage
const escaleosLogs = require('@escale/escaleos-logs')
const log = new escaleosLogs(process.env.ENV)
log.setService(SERVICE)
log.setFunction(FUNCTION_NAME)
log.info('Informations', 'ACTION')
log.debug('Debug', 'ACTION')
log.war('Warnings')
log.error('Errors')