没有合适的资源?快使用搜索试试~ 我知道了~
并发记录器:分别记录HTTP请求响应,可视化它们的并发并在请求的上下文中报告日志错误
共32个文件
log:20个
js:2个
npmignore:1个
需积分: 9 0 下载量 39 浏览量
2021-02-03
14:44:17
上传
评论
收藏 45KB ZIP 举报
温馨提示
并发记录器 HTTP日志记录中间件对于在不丢失请求上下文的情况下展开并发操作特别有用 安装 $ npm install concurrency-logger 用法 与 基本用法 import Koa from 'koa' ; import createLogger from 'concurrency-logger' ; const app = new Koa ; // Logger is stateful as it contains information about concurrent requests // Same instance needs to be reused across requests const logger = createLogger ( /* options */ ) ; app . use ( logger ) ; 来自中间件的日志 // Log something in context to a specific request to trace it back easily - // also when there are multiple c
资源推荐
资源详情
资源评论
收起资源包目录
concurrency-logger-master.zip (32个子文件)
concurrency-logger-master
.eslintrc 562B
yarn.lock 90KB
src
index.js 9KB
.babelrc 151B
.npmignore 0B
.travis.yml 320B
LICENSE 1KB
test
fixtures
logger_status_codes_should_format_1xx_(Informational).log 615B
logger_should_color_response_time.log 4KB
logger_should_log_an_unhandled_error.log 324B
logger_should_expand_when_timestamp_needs_more_space.log 658B
logger_status_codes_should_format_3xx_(Redirection).log 2KB
logger_should_expose_context.log.info_method.log 243B
logger_status_codes_should_format_2xx_(Success).log 2KB
logger_should_pretty_print_functions.log 249B
logger_status_codes_should_format_5xx_(Server_error).log 2KB
logger_width_should_not_break_lines_when_set_to_false.log 359B
logger_width_should_break_at_specific_column.log 399B
logger_should_pretty_print_objects.log 224B
logger_should_expose_context.log.error_method.log 248B
logger_status_codes_should_format_4xx_(Client_error).log 6KB
logger_should_expose_context.log_method.log 216B
logger_should_log_a_request_and_a_response.log 192B
logger_should_format_response_time.log 1KB
logger_should_show_timestamp.log 220B
logger_should_use_custom_colorizer.log 237B
logger_width_can_be_provided_as_function.log 399B
index.js 16KB
README.md 6KB
.gitignore 49B
.eslintignore 27B
package.json 2KB
共 32 条
- 1
资源评论
两只妖精同上树
- 粉丝: 31
- 资源: 4747
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功