Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 550 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 550 Bytes

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.