File tree Expand file tree Collapse file tree 8 files changed +11
-12
lines changed Expand file tree Collapse file tree 8 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
stackdriver-request-context-log
2
2
===
3
- [ ![ CircleCI] ( https://circleci.com/gh/yfuruyama/stackdriver-request-context-log.svg?style=svg )] ( https://circleci.com/gh/yfuruyama/stackdriver-request-context-log )
4
3
5
4
Stackdriver Logging Go library for grouping a request log and application logs.
6
5
7
6
With this library all application logs in the request are grouped and displayed under the request log (like App Engine).
8
7
9
- <img alt =" screenshot " src =" https://github.com/yfuruyama/stackdriver-request-context-log /blob/master/img/screenshot.png " >
8
+ <img alt =" screenshot " src =" https://github.com/gcp-kit/stalog /blob/master/img/screenshot.png " >
10
9
11
10
Note that the interface of this library is still ** ALPHA** level quality.
12
11
Breaking changes will be introduced frequently.
13
12
14
13
## Install
15
14
16
15
```
17
- go get -u github.com/yfuruyama/stackdriver-request-context-log
16
+ go get -u github.com/gcp-kit/stalog
18
17
```
19
18
20
19
## Example
@@ -29,7 +28,7 @@ import (
29
28
" net/http"
30
29
" os"
31
30
32
- log " github.com/yfuruyama/stackdriver-request-context-log "
31
+ log " github.com/gcp-kit/stalog "
33
32
)
34
33
35
34
func main () {
Original file line number Diff line number Diff line change 1
- package stackdriverlog
1
+ package stalog
2
2
3
3
type contextKey struct {}
4
4
Original file line number Diff line number Diff line change 5
5
"net/http"
6
6
"os"
7
7
8
+ log "github.com/gcp-kit/stalog"
8
9
"github.com/go-chi/chi"
9
- log "github.com/yfuruyama/stackdriver-request-context-log"
10
10
)
11
11
12
12
func main () {
Original file line number Diff line number Diff line change 5
5
"net/http"
6
6
"os"
7
7
8
- log "github.com/yfuruyama/stackdriver-request-context-log "
8
+ log "github.com/gcp-kit/stalog "
9
9
)
10
10
11
11
func main () {
Original file line number Diff line number Diff line change 1
- module github.com/yfuruyama/stackdriver-request-context-log
1
+ module github.com/gcp-kit/stalog
2
2
3
3
go 1.14
4
4
Original file line number Diff line number Diff line change 1
- package stackdriverlog
1
+ package stalog
2
2
3
3
import (
4
4
"context"
Original file line number Diff line number Diff line change 1
- // Package stackdriverlog provides application logger for Cloud Logging.
2
- package stackdriverlog
1
+ // Package stalog provides application logger for Cloud Logging.
2
+ package stalog
3
3
4
4
import (
5
5
"encoding/json"
Original file line number Diff line number Diff line change 1
- package stackdriverlog
1
+ package stalog
2
2
3
3
import (
4
4
"bytes"
You can’t perform that action at this time.
0 commit comments