【文件属性】:
文件名称:redlog:用于Go的Redis样式记录器
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-25 11:08:24
Go
重做日志
Redlog是Go的。
正在安装
go get -u github.com/tidwall/redlog
例子
log := redlog . New ( os . Stderr )
log . Printf ( "Server started at 10.0.1.5:6379" )
log . Debugf ( "Connected to leader" )
log . Warningf ( "Heartbeat timeout reached, starting election" )
输出:
93324:M 29 Aug 09:30:59.943 * Server started at 10.0.1.5:6379
93324:M 29 Aug 09:31:01.892 . Connected to leader
93324:M 29 Aug 09:31:02.3
【文件预览】:
redlog-master
----go.mod(109B)
----LICENSE(1KB)
----go.sum(1KB)
----.github()
--------workflows()
----README.md(837B)
----redlog.go(9KB)
----redlog_test.go(150B)