@apoiase/papertrail-lambda

0.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @apoiase/papertrail-lambda

Weekly Downloads

17

Version

0.0.2

License

ISC

Unpacked Size

2.38 kB

Total Files

6

Last publish

Collaborators

  • hernanefron