vagusX / koa-proxies

a koa@2.x+ proxy middleware
https://vagusx.github.io/koa-proxies/
MIT License
161 stars 44 forks source link

Update index.js #42

Closed raphaelsoul closed 4 years ago

raphaelsoul commented 5 years ago

I've added a small feature for customized logging. In my case I need integrate proxying with log4js.

if opts.logs is a function, it will be developer's responsibility to formatting and build log message

codecov[bot] commented 5 years ago

Codecov Report

Merging #42 into master will increase coverage by 0.19%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #42      +/-   ##
=========================================
+ Coverage    92.3%   92.5%   +0.19%     
=========================================
  Files           1       1              
  Lines          39      40       +1     
  Branches        6       7       +1     
=========================================
+ Hits           36      37       +1     
  Misses          3       3
Impacted Files Coverage Δ
index.js 92.5% <100%> (+0.19%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 11d5e76...3d994a6. Read the comment docs.

vagusX commented 4 years ago

:tada: This PR is included in version 0.10.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: