1.0.2 • Published 8 years ago

egg-slslogger v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

egg-slslogger

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-slslogger --save

依赖 egg-logger 插件必须开启

Usage

// {app_root}/config/plugin.js
exports.slslogger = {
  enable: true,
  package: 'egg-slslogger',
};

Configuration

// {app_root}/config/config.default.js
exports.slslogger = {
      accessKeyId: '**',
      secretAccessKey: '**',
      endpoint: 'http://cn-hangzhou.sls.aliyuncs.com',
      apiVersion: '2015-06-01',
      slsProject: '**',
      logStoreName: '**'
};

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT