glg:golang的简单而快速的无锁日志记录库

时间:2021-02-14 14:12:43
【文件属性】:
文件名称:glg:golang的简单而快速的无锁日志记录库
文件大小:837KB
文件格式:ZIP
更新时间:2021-02-14 14:12:43
fast golang log simple logger 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
----.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)
----levelmap.go(4KB)
----LICENSE(1KB)
----.whitesource(137B)
----go.sum(5KB)
----glg_test.go(75KB)
----loggers.go(4KB)
----README.md(5KB)
----example()
--------main.go(5KB)
----.circleci()
--------config.yml(4KB)
----renovate.json(41B)

网友评论