/logging

this repo host logging front end and backend.

Primary LanguageGo

Logging service for golang projects

usage with grpc

  1. go get github.com/MiSingularity/logging

  2. Init grpc client by calling

    bi.Init("127.0.0.1", "50051")
  3. Call Bi() to add a bi log, for example:

    bi.Bi(&p.BiLog{
    		ProjectName: "deepshare",
    		ActionName:  "userlink",
    		Timestamp:   time.Now().Unix(),
    		Detail:      []byte("detail~~~~~~"),
    	})

Golang example is placed in fe/example/go/biclient.go, Other languages are similar.