mirror of
https://github.com/mailgun/groupcache.git
synced 2024-11-16 23:10:53 +00:00
8c6aae6360
Provides backwards compatibility with existing logrus via SetLogger() method Introduces a Logger interface that others can implement for other structured loggers such as zerolog. Add SetLoggerFromLogger method that allows caller to pass in an implementation of the new Logger interface. Bumps the golang.org/x/sys dependency since tests fail to run on go 1.18 with the old version. adding a test case for LogrusLogger adding benchmark, add WithFields method because it's a lot faster apparently
11 lines
235 B
Modula-2
11 lines
235 B
Modula-2
module github.com/mailgun/groupcache/v2
|
|
|
|
require (
|
|
github.com/golang/protobuf v1.3.1
|
|
github.com/segmentio/fasthash v1.0.3
|
|
github.com/sirupsen/logrus v1.6.0
|
|
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
|
|
)
|
|
|
|
go 1.15
|