@apoiase/papertrail-lambda

Apoia.se solution for Papertrail + Lambda problem.

Usage no npm install needed!

<script type="module">
  import apoiasePapertrailLambda from 'https://cdn.skypack.dev/@apoiase/papertrail-lambda';
</script>

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.