glg:golang的简单而快速的无锁日志记录库 源码
glg是简单的golang记录库 要求 转到1.11 安装 go get github.com/kpango/glg 例子 package main import ( "net/http" "time" "github.com/kpango/glg" ) // NetWorkLogger sample network logger type NetWorkLogger struct {} func ( n NetWorkLogger ) Write ( b [] byte ) ( int , error ) { // http.Post("localhost:8080/log", "", bytes.NewReader(b)) http . Get ( "http://127.0.0.1:8080/log" ) glg . Success ( "Requested" ) gl
文件列表
glg-master.zip
(预估有个18文件)
glg-master
.gitignore
301B
go.mod
144B
glg.go
26KB
images
bench.png
431KB
logo.png
175KB
sample.png
333KB
Makefile
2KB
glg_bench_test.go
7KB
暂无评论