0.4.0 • Published 4 years ago

@tigojs/faas-log v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@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

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago