api-request-logger-源码

上传者: 42127937 | 上传时间: 2021-02-16 12:16:52 | 文件大小: 84KB | 文件类型: ZIP
@ diegoh / api-request-logger Koa中间件使用提供的记录器记录请求。 用法 通过为记录器提供error和info方法来初始化模块。 要记录请求,请在初始化后通过koa ctx对象作为参数。 例子 const myLogger = require ( './logger' ) ; const setupRequestLogger = require ( '@diegoh/api-request-logger' ) ; const logRequest = setupRequestLogger ( myLogger ) ; logRequest ( ctx ) ; 发展 从master创建一个新分支,其名称与您所做的更改相关。 git branch -b my-new-feature-description 推动分支并打开“拉取请求”(PR)。 要求进行代

文件下载

资源详情

[{"title":"( 27 个子文件 84KB ) api-request-logger-源码","children":[{"title":"api-request-logger-master","children":[{"title":".nvmrc <span style='color:#111;'> 8B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"publish-public.yml <span style='color:#111;'> 766B </span>","children":null,"spread":false},{"title":"coverage.yml <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"create-github-release.yml <span style='color:#111;'> 710B </span>","children":null,"spread":false},{"title":"build.yml <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"jest.config.js <span style='color:#111;'> 171B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 281.01KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"models","children":[{"title":"error-log.class.ts <span style='color:#111;'> 746B </span>","children":null,"spread":false},{"title":"log.interface.ts <span style='color:#111;'> 176B </span>","children":null,"spread":false},{"title":"info-log.class.spec.ts <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"info-log.class.ts <span style='color:#111;'> 873B </span>","children":null,"spread":false},{"title":"logger.interface.ts <span style='color:#111;'> 145B </span>","children":null,"spread":false},{"title":"error-log.class.spec.ts <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false}],"spread":true},{"title":"error-logger.ts <span style='color:#111;'> 334B </span>","children":null,"spread":false},{"title":"request-logger.ts <span style='color:#111;'> 344B </span>","children":null,"spread":false},{"title":"error-logger.spec.ts <span style='color:#111;'> 972B </span>","children":null,"spread":false},{"title":"request-logger.spec.ts <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 96B </span>","children":null,"spread":false}],"spread":true},{"title":".eslintrc.js <span style='color:#111;'> 84B </span>","children":null,"spread":false},{"title":".huskyrc <span style='color:#111;'> 83B </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 159B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 974B </span>","children":null,"spread":false},{"title":".npmrc <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":".eslintignore <span style='color:#111;'> 37B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明