@apoiase/papertrail-lambda
v0.0.2
Published
Apoia.se solution for Papertrail + Lambda problem.
Downloads
64
Readme
Papertrail Lambda
Apoia.se solution for Papertrail + Lambda problem.
Example:
const instanceFn = fn({
host: 'logsX.papertrailapp.com',
port: 23181
})
await instanceFn.error('Isso é um error', 100)
await instanceFn.info('Isso é uma info', 100)
- instanceFn.error and instanceFn.info: Accept 2 params. 1 - Message, 2 - Milliseconds to wait after sending
Attention:
If the logs are not arriving, try increasing the milliseconds parameter.
Always use context.callbackWaitsForEmptyEventLoop = false
.