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

caicloud / nirvana / 589
46%

Build:
DEFAULT BRANCH: master
Ran 04 Apr 2018 04:34AM UTC
Jobs 2
Files 69
Run time 48s
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

pending completion
589

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%)

71.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 589.1 04 Apr 2018 04:35AM UTC 0
58.34
Travis Job 589.1
2 589.2 04 Apr 2018 04:34AM UTC 0
58.34
Travis Job 589.2
Source Files on build 589
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #589
  • 3ee1c0eb on github
  • Prev Build on master (#584)
  • Next Build on master (#591)
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