[go-nuts] Re: How to allow library callers to control logging

2020-08-03 Thread Tamás Gulácsi
I'm using the go-kit/kit/log (https://pkg.go.dev/github.com/go-kit/kit/log?tab=doc#Logger) abstraction: Log(keyvals ...interface{}) error This can be set in my library, and uses with logfmt, if given. leo.b...@npo-data.nl a következőt írta (2020. augusztus 3., hétfő, 18:33:11 UTC+2): > N

[go-nuts] Re: How to allow library callers to control logging

2020-08-03 Thread leo.b...@npo-data.nl
Not sure if this is what you are looking for, but https://github.com/go-logr/logr seems to address log abstraction. On Friday, July 31, 2020 at 3:05:03 AM UTC+2 fai...@google.com wrote: > I have a library that is used by cross platform binaries running in corp. > Some of these binaries don't ne