Since you've been using glog, k8s.io/klog/v2 (fork by kubernetes) should feel familiar and v2 supports the structured variants
On Wednesday, November 18, 2020 at 5:21:48 AM UTC+1 ChrisLu wrote: > I am considering moving from glog to structured logging. I tried logrus, > go-kit, uber/zap, but could not find one good fit. In short, this is the > desired format: > > [info][timestamp] [filename:line_number] message k1=v1 k2=v2 ... > > It shows the correct file name(need to pop out a few call stacks) and line > number in a customizable format, not as key-value pair for each line which > is just too verbose to have the extra "time=" "file=". > > Please let me know the one you actually use. > > > Thanks! > Chris > --------- > https://github.com/chrislusf/seaweedfs > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/5afb6156-34d5-4bf0-beb0-d24a79ce9b5cn%40googlegroups.com.