@tigojs/faas-log

0.4.0 • Public • Published

@tigojs/faas-log

Add log service for @tigojs/faas, allow to record logs inside the lambda.

Usage

Use @tigojs/cli to install.

tigo add faas-log

Configuration

Here's a template:

// .tigorc.js
module.exports = {
  plugins: {
    faasLog: {
      package: '@tigojs/faas-log',
      config: {
        mongoEngine: '',  // specific a mongodb engine, optional
        database: '', // specific a database name, optional
        maxTimeSpan: 1000 * 60 * 60 * 24, // max time span for querying logs, default 1 day
        maxKeepDays: 7,  // optional, set the max days to keep the log
      },
    },
  },
};

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @tigojs/faas-log

Weekly Downloads

0

Version

0.4.0

License

MIT

Unpacked Size

7.46 kB

Total Files

8

Last publish

Collaborators

  • backrunner