• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

caicloud / nirvana / 589 / 1
46%
master: 46%

Build:
DEFAULT BRANCH: master
Ran 04 Apr 2018 04:35AM UTC
Files 69
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Apr 2018 04:30AM UTC coverage: 58.34% (-1.9%) from 60.22%
589.1

push

travis-ci

caicloud-bot
feat(reqlog): add request logging plugin (#196)

Automatic merge from submit-queue.

feat(reqlog): add request logging plugin

**What this PR does / why we need it**:

Add request logging plugin.

Default:

```
INFO  0330-15:29:46.837+08 reqlog.go:100 | GET 200 3 101.48506ms /echo?msg=xxx
```
| Value | Description |
| ------- | -------------- |
| GET | HTTP Method |
| 200 | Status Code |
| 3 | Response Body Length |
| 101.48506ms | Request Time Consuming |
| /echo?msg=xxx | URL |

Enable DoubleLog, SourceAddr, RequestID:

```
INFO  0330-15:31:16.777+08 reqlog.go:100 | GET /echo?msg=xxx HereIsRequestID 127.0.0.1:51262
INFO  0330-15:31:16.877+08 reqlog.go:100 | GET 200 3 100.447277ms /echo?msg=xxx HereIsRequestID 127.0.0.1:51262
```
| Value | Description |
| ------- | -------------- |
| HereIsRequestID | Request ID |
| 127.0.0.1:51262 | Source Addr |

Double log outputs two entries for every request.


**Which issue(s) this PR fixes** *(optional, close the issue(s) when PR gets merged)*:

Fixes #

**Special notes for your reviewer**:

/cc @zoumo 
/cc @ddysher 
/cc @caitong93 

**Release note**:


```release-note
Add request logging plugin
```

<!--  Thanks for sending a pull request! Here are some tips:

1. https://github.com/caicloud/engineering/blob/master/docs/review_conventions.md  <-- what is the review process looks like
2. https://github.com/caicloud/engineering/blob/master/docs/commit_conventions.md  <-- how to structure your git commit
3. https://github.com/caicloud/engineering/blob/master/docs/caicloud_bot.md        <-- how to work with caicloud bot

Other tips from Kubernetes cmomunity:

1. If this is your first time, read our contributor guidelines https://git.k8s.io/community/contributors/devel/pull-requests.md#the-pr-submit-process and developer guide https://git.k8s.io/community/contributors/devel/development.md#development-guide
2. If you want *faster* PR reviews, read how: https:/... (continued)

3120 of 5348 relevant lines covered (58.34%)

35.79 hits per line

Source Files on job 589.1
  • Tree
  • List 0
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 589.1
  • 3ee1c0eb on github
  • Prev Job for on master (#584.2)
  • Next Job for on master (#591.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc