event-log-escaleos
Send log to an SNS Topic
https://www.npmjs.com/package/event-log-escaleos
Usage
const eventLog = require('event-log-escaleos-health')
eventLog.init(SNS_TOPIC_ARN, 'us-east-1')
eventLog.setService(SERVICE)
eventLog.setFunction(FUNCTION_NAME)
eventLog.setAction(ACTION)
eventLog.setSubject(SUBJECT)
eventLog.info('Informations')
eventLog.war('Warnings')
eventLog.error('Errors')